summaryrefslogtreecommitdiff
path: root/include/connectivity/FValue.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/connectivity/FValue.hxx')
-rw-r--r--include/connectivity/FValue.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connectivity/FValue.hxx b/include/connectivity/FValue.hxx
index 4fc1d081df4f..658e3394fd94 100644
--- a/include/connectivity/FValue.hxx
+++ b/include/connectivity/FValue.hxx
@@ -316,7 +316,7 @@ namespace connectivity
// we the possibility to save a any for bookmarks
ORowSetValue& operator=(const ::com::sun::star::uno::Any& _rAny);
- operator bool() const { return isNull() ? false : getBool(); }
+ operator bool() const { return !isNull() && getBool(); }
operator sal_Int8() const { return isNull() ? static_cast<sal_Int8>(0) : getInt8(); }
operator sal_uInt8() const { return isNull() ? static_cast<sal_uInt8>(0) : getUInt8(); }