diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-25 17:11:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-25 17:11:22 +0200 |
commit | 6a0a9870a3b42eca22af064579c8f1b5149c1fa4 (patch) | |
tree | 3e09f65768b42acff55090707eef875140afefcf /connectivity/source/commontools | |
parent | e58aa27adf5cc28a8a734263e0e0b6e331b095a9 (diff) |
-Werror=maybe-uninitialized
Change-Id: Iafa3712d3b600e11b687e7ec5a4ea5a14e87a48b
Diffstat (limited to 'connectivity/source/commontools')
-rw-r--r-- | connectivity/source/commontools/FValue.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/connectivity/source/commontools/FValue.cxx b/connectivity/source/commontools/FValue.cxx index 68b5aa4bbe3d..f7473f539823 100644 --- a/connectivity/source/commontools/FValue.cxx +++ b/connectivity/source/commontools/FValue.cxx @@ -1217,8 +1217,9 @@ sal_uInt8 ORowSetValue::getUInt8() const Any aValue = makeAny(); // Cf. "There is no TypeClass_UNSIGNED_BYTE" in makeAny: sal_uInt16 n; - aValue >>= n; - nRet = static_cast<sal_uInt8>(n); + if (aValue >>= n) { + nRet = static_cast<sal_uInt8>(n); + } break; } } |