summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 18:09:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 18:11:10 +0100
commitcc7ffa07f1afe05251428aace2b4ef818a693c0d (patch)
tree967c98577175d558e51c8fa5a86171c04cbfde02 /connectivity
parentab6e083f7d58b541a78b1a78ba127941808b2ed4 (diff)
Be explicit when using bool as integral value
Change-Id: I782942e25107ce996f3f31c3f53123c118d81838
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/FValue.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index 4d176be585f1..4180bc27347e 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -1021,7 +1021,7 @@ OUString ORowSetValue::getString( ) const
}
break;
case DataType::BIT:
- aRet = OUString::number(static_cast<bool>(*this));
+ aRet = OUString::number(int(static_cast<bool>(*this)));
break;
case DataType::BOOLEAN:
aRet = OUString::boolean(static_cast<bool>(*this));
@@ -1175,7 +1175,7 @@ sal_Int8 ORowSetValue::getInt8() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_Int8(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1321,7 +1321,7 @@ sal_Int16 ORowSetValue::getInt16() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_Int16(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1392,7 +1392,7 @@ sal_uInt16 ORowSetValue::getUInt16() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_uInt16(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1466,7 +1466,7 @@ sal_Int32 ORowSetValue::getInt32() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_Int32(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1539,7 +1539,7 @@ sal_uInt32 ORowSetValue::getUInt32() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_uInt32(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1613,7 +1613,7 @@ sal_Int64 ORowSetValue::getLong() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_Int64(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1686,7 +1686,7 @@ sal_uInt64 ORowSetValue::getULong() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = sal_uInt64(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1764,7 +1764,7 @@ float ORowSetValue::getFloat() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = float(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )
@@ -1843,7 +1843,7 @@ double ORowSetValue::getDouble() const
break;
case DataType::BIT:
case DataType::BOOLEAN:
- nRet = m_aValue.m_bBool;
+ nRet = double(m_aValue.m_bBool);
break;
case DataType::TINYINT:
if ( m_bSigned )