summaryrefslogtreecommitdiffstats
path: root/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-25 16:30:35 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-25 16:30:35 +0200
commitba84f9ce04172806d685ee0d21856827874c7a66 (patch)
treed0e04758ed8d171bbc2caa691eabc6bd648f75a9 /connectivity
parentadd English (Mauritius) [en-MU] and French (Mauritius) [fr-MU], tdf#99372 (diff)
downloadcore-ba84f9ce04172806d685ee0d21856827874c7a66.tar.gz
core-ba84f9ce04172806d685ee0d21856827874c7a66.zip
Cannot extract Any to sal_uInt32
...which has the same underlying type as sal_Bool Change-Id: If0548d2830b5924dec06e487c83a468fe8567c87
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/commontools/FValue.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx
index b9d6fc9f3e9b..68b5aa4bbe3d 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;
}
}