More loplugin:cstylecast: connectivity
Change-Id: Id7cbe6a119b944813bc7638b08e59d4705607ece
This commit is contained in:
@@ -236,7 +236,7 @@ void ODbaseTable::readHeader()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Consistency check of the header:
|
// Consistency check of the header:
|
||||||
m_aHeader.type = (DBFType)nType;
|
m_aHeader.type = static_cast<DBFType>(nType);
|
||||||
switch (m_aHeader.type)
|
switch (m_aHeader.type)
|
||||||
{
|
{
|
||||||
case dBaseIII:
|
case dBaseIII:
|
||||||
|
@@ -95,7 +95,7 @@ namespace
|
|||||||
|
|
||||||
OUString const & lcl_guessProfileRoot( MozillaProductType _product )
|
OUString const & lcl_guessProfileRoot( MozillaProductType _product )
|
||||||
{
|
{
|
||||||
size_t productIndex = (int)_product - 1;
|
size_t productIndex = static_cast<int>(_product) - 1;
|
||||||
|
|
||||||
static OUString s_productDirectories[NB_PRODUCTS];
|
static OUString s_productDirectories[NB_PRODUCTS];
|
||||||
|
|
||||||
|
@@ -67,7 +67,7 @@ namespace connectivity
|
|||||||
//Thunderbird and firefox profiles are saved in profiles.ini
|
//Thunderbird and firefox profiles are saved in profiles.ini
|
||||||
void ProfileAccess::LoadXPToolkitProfiles(MozillaProductType product)
|
void ProfileAccess::LoadXPToolkitProfiles(MozillaProductType product)
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
|
|
||||||
OUString regDir = getRegistryDir(product);
|
OUString regDir = getRegistryDir(product);
|
||||||
@@ -142,7 +142,7 @@ namespace connectivity
|
|||||||
|
|
||||||
OUString ProfileAccess::getProfilePath( css::mozilla::MozillaProductType product, const OUString& profileName )
|
OUString ProfileAccess::getProfilePath( css::mozilla::MozillaProductType product, const OUString& profileName )
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
if (rProduct.mProfileList.empty() || rProduct.mProfileList.find(profileName) == rProduct.mProfileList.end())
|
if (rProduct.mProfileList.empty() || rProduct.mProfileList.find(profileName) == rProduct.mProfileList.end())
|
||||||
{
|
{
|
||||||
@@ -155,13 +155,13 @@ namespace connectivity
|
|||||||
|
|
||||||
::sal_Int32 ProfileAccess::getProfileCount( css::mozilla::MozillaProductType product)
|
::sal_Int32 ProfileAccess::getProfileCount( css::mozilla::MozillaProductType product)
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
return static_cast< ::sal_Int32 >(rProduct.mProfileList.size());
|
return static_cast< ::sal_Int32 >(rProduct.mProfileList.size());
|
||||||
}
|
}
|
||||||
::sal_Int32 ProfileAccess::getProfileList( css::mozilla::MozillaProductType product, css::uno::Sequence< OUString >& list )
|
::sal_Int32 ProfileAccess::getProfileList( css::mozilla::MozillaProductType product, css::uno::Sequence< OUString >& list )
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
list.realloc(static_cast<sal_Int32>(rProduct.mProfileList.size()));
|
list.realloc(static_cast<sal_Int32>(rProduct.mProfileList.size()));
|
||||||
sal_Int32 i=0;
|
sal_Int32 i=0;
|
||||||
@@ -179,7 +179,7 @@ namespace connectivity
|
|||||||
|
|
||||||
OUString ProfileAccess::getDefaultProfile( css::mozilla::MozillaProductType product )
|
OUString ProfileAccess::getDefaultProfile( css::mozilla::MozillaProductType product )
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
if (!rProduct.mCurrentProfileName.isEmpty())
|
if (!rProduct.mCurrentProfileName.isEmpty())
|
||||||
{
|
{
|
||||||
@@ -197,7 +197,7 @@ namespace connectivity
|
|||||||
|
|
||||||
bool ProfileAccess::getProfileExists( css::mozilla::MozillaProductType product, const OUString& profileName )
|
bool ProfileAccess::getProfileExists( css::mozilla::MozillaProductType product, const OUString& profileName )
|
||||||
{
|
{
|
||||||
sal_Int32 index=(sal_Int32)product;
|
sal_Int32 index=static_cast<sal_Int32>(product);
|
||||||
ProductStruct &rProduct = m_ProductProfileList[index];
|
ProductStruct &rProduct = m_ProductProfileList[index];
|
||||||
if (rProduct.mProfileList.empty() || rProduct.mProfileList.find(profileName) == rProduct.mProfileList.end())
|
if (rProduct.mProfileList.empty() || rProduct.mProfileList.find(profileName) == rProduct.mProfileList.end())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user