connectivity/source/commontools/FValue.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 2bc7d0534c946ec73a146dd823bb0a3d478608f2 Author: Christian Lohmaier <[email protected]> Date: Sun Mar 17 19:50:22 2013 +0100 fix makeAny calls checks failed on Mac/PPC - setValue expects sal_Bool, not plain bool for bool there's assignment operator. Similar for unsigned short - there's dedicated operator to assign sal_uInt16 - no need to cast to signed sal_Int23 that then fails to convert properly. Change-Id: I6c67a3741cf2d7910fc543c9c71db1c6e816bea6 Reviewed-on: https://gerrit.libreoffice.org/2805 Reviewed-by: Fridrich Strba <[email protected]> Tested-by: Fridrich Strba <[email protected]> diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index fef5087..e41a1a7 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -916,7 +916,7 @@ Any ORowSetValue::makeAny() const break; case DataType::BIT: case DataType::BOOLEAN: - rValue.setValue( &m_aValue.m_bBool, ::getCppuBooleanType() ); + rValue <<= m_aValue.m_bBool; break; case DataType::TINYINT: if ( m_bSigned ) @@ -2414,8 +2414,7 @@ void ORowSetValue::fill(const Any& _rValue) { sal_uInt16 nValue(0); _rValue >>= nValue; - (*this) = static_cast<sal_Int32>(nValue); - setSigned(sal_False); + (*this) = nValue; break; } case TypeClass_LONG: _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
