From cf7f31c1d631eaec22ea89466f7639adf9ed620f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 24 Apr 2015 12:25:07 +0200 Subject: loplugin:simplifybool Change-Id: Ib0290487a963d665a628bd75f4140a9e2b89faa7 --- include/connectivity/FValue.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/connectivity') 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(0) : getInt8(); } operator sal_uInt8() const { return isNull() ? static_cast(0) : getUInt8(); } -- cgit