summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:06:50 +0100
commit9bff1e15e55e95a90887cc45f49cabad39a126bb (patch)
tree24c642ee9df1c3743315f1a28613d93f2bc322f4
parent016b8d71a222dad3637824c1e1625b2f22b2cc73 (diff)
More loplugin:cstylecast: connectivity
Change-Id: Id7cbe6a119b944813bc7638b08e59d4705607ece
-rw-r--r--connectivity/source/drivers/dbase/DTable.cxx2
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx2
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx12
3 files changed, 8 insertions, 8 deletions
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index eef8df9bb5e7..5b7b60915531 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -236,7 +236,7 @@ void ODbaseTable::readHeader()
else
{
// Consistency check of the header:
- m_aHeader.type = (DBFType)nType;
+ m_aHeader.type = static_cast<DBFType>(nType);
switch (m_aHeader.type)
{
case dBaseIII:
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
index 328d377dada3..07376ab262f7 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
@@ -95,7 +95,7 @@ namespace
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];
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
index ac0cca926bbb..56d82555cedc 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx
@@ -67,7 +67,7 @@ namespace connectivity
//Thunderbird and firefox profiles are saved in profiles.ini
void ProfileAccess::LoadXPToolkitProfiles(MozillaProductType product)
{
- sal_Int32 index=(sal_Int32)product;
+ sal_Int32 index=static_cast<sal_Int32>(product);
ProductStruct &rProduct = m_ProductProfileList[index];
OUString regDir = getRegistryDir(product);
@@ -142,7 +142,7 @@ namespace connectivity
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];
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 index=(sal_Int32)product;
+ sal_Int32 index=static_cast<sal_Int32>(product);
ProductStruct &rProduct = m_ProductProfileList[index];
return static_cast< ::sal_Int32 >(rProduct.mProfileList.size());
}
::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];
list.realloc(static_cast<sal_Int32>(rProduct.mProfileList.size()));
sal_Int32 i=0;
@@ -179,7 +179,7 @@ namespace connectivity
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];
if (!rProduct.mCurrentProfileName.isEmpty())
{
@@ -197,7 +197,7 @@ namespace connectivity
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];
if (rProduct.mProfileList.empty() || rProduct.mProfileList.find(profileName) == rProduct.mProfileList.end())
{