summaryrefslogtreecommitdiff
path: root/include/connectivity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:25:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:19 +0200
commitcf7f31c1d631eaec22ea89466f7639adf9ed620f (patch)
treeccad396eff00c3601f1c6057b630990044d8f3b7 /include/connectivity
parent820fca753b0bfed6078b9cde09430177d6a193ca (diff)
loplugin:simplifybool
Change-Id: Ib0290487a963d665a628bd75f4140a9e2b89faa7
Diffstat (limited to 'include/connectivity')
-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(); }