[Libreoffice-commits] core.git: connectivity/source
Stephan Bergmann
sbergman at redhat.com
Mon Apr 25 14:31:05 UTC 2016
connectivity/source/commontools/FValue.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit ba84f9ce04172806d685ee0d21856827874c7a66
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Apr 25 16:30:35 2016 +0200
Cannot extract Any to sal_uInt32
...which has the same underlying type as sal_Bool
Change-Id: If0548d2830b5924dec06e487c83a468fe8567c87
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index b9d6fc9..68b5aa4 100644
--- a/connectivity/source/commontools/FValue.cxx
+++ b/connectivity/source/commontools/FValue.cxx
@@ -1215,7 +1215,10 @@ sal_uInt8 ORowSetValue::getUInt8() const
default:
{
Any aValue = makeAny();
- aValue >>= nRet;
+ // Cf. "There is no TypeClass_UNSIGNED_BYTE" in makeAny:
+ sal_uInt16 n;
+ aValue >>= n;
+ nRet = static_cast<sal_uInt8>(n);
break;
}
}
More information about the Libreoffice-commits
mailing list