connectivity/source/drivers/ado/AConnection.cxx |    2 +-
 connectivity/source/drivers/ado/Aolevariant.cxx |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 3241d0125e7a17528a956e89bab21efc498b0587
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Wed Apr 19 17:36:25 2017 +0200

    loplugin:redundantcast (clang-cl)
    
    Change-Id: I97ff3f7c4ebfb7c9db2ceed234da1095ed0eeed6

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();
     }
 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to