summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-04-19 17:36:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-04-19 17:36:25 +0200
commit3241d0125e7a17528a956e89bab21efc498b0587 (patch)
treec117b4e519c8f1dc4a1a37c0dd892256f5a11c64 /connectivity
parent8af6e5e0c4191b12d830b20f72ec3552eea15747 (diff)
loplugin:redundantcast (clang-cl)
Change-Id: I97ff3f7c4ebfb7c9db2ceed234da1095ed0eeed6
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/ado/AConnection.cxx2
-rw-r--r--connectivity/source/drivers/ado/Aolevariant.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/connectivity/source/drivers/ado/AConnection.cxx b/connectivity/source/drivers/ado/AConnection.cxx
index 2ad0f8938cab..bb98b69b7690 100644
--- a/connectivity/source/drivers/ado/AConnection.cxx
+++ b/connectivity/source/drivers/ado/AConnection.cxx
@@ -438,7 +438,7 @@ void OConnection::buildTypeInfo()
aInfo->eType = (DataTypeEnum)ADOS::getField(pRecordset,nPos++).get_Value().getInt32();
if ( aInfo->eType == adWChar && aInfo->aSimpleType.aTypeName == s_sVarChar )
aInfo->eType = adVarWChar;
- aInfo->aSimpleType.nType = (sal_Int16)ADOS::MapADOType2Jdbc(static_cast<DataTypeEnum>(aInfo->eType));
+ aInfo->aSimpleType.nType = (sal_Int16)ADOS::MapADOType2Jdbc(aInfo->eType);
aInfo->aSimpleType.nPrecision = ADOS::getField(pRecordset,nPos++).get_Value().getInt32();
aInfo->aSimpleType.aLiteralPrefix = ADOS::getField(pRecordset,nPos++).get_Value().getString();
aInfo->aSimpleType.aLiteralSuffix = ADOS::getField(pRecordset,nPos++).get_Value().getString();
diff --git a/connectivity/source/drivers/ado/Aolevariant.cxx b/connectivity/source/drivers/ado/Aolevariant.cxx
index fa63b5060db5..f7ac7b5f5694 100644
--- a/connectivity/source/drivers/ado/Aolevariant.cxx
+++ b/connectivity/source/drivers/ado/Aolevariant.cxx
@@ -364,12 +364,12 @@ void OLEVariant::set(double n)
{
if( n >= 0 )
{
- cyVal.Hi = (sal_Int32)(n / (double)4294967296.0);
- cyVal.Lo = (sal_uInt32)(n - ((double)cyVal.Hi * (double)4294967296.0));
+ cyVal.Hi = (sal_Int32)(n / 4294967296.0);
+ cyVal.Lo = (sal_uInt32)(n - ((double)cyVal.Hi * 4294967296.0));
}
else {
- cyVal.Hi = (sal_Int32)(-n / (double)4294967296.0);
- cyVal.Lo = (sal_uInt32)(-n - ((double)cyVal.Hi * (double)4294967296.0));
+ cyVal.Hi = (sal_Int32)(-n / 4294967296.0);
+ cyVal.Lo = (sal_uInt32)(-n - ((double)cyVal.Hi * 4294967296.0));
CHS();
}
}