summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:32:21 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:24 +0200
commitc718cfd7431d5909f66547a2042bd303f79cfde0 (patch)
treee611425d70279e0566e7c4011de4337306d94d4a /include/oox
parent1f7825a82909c2b6131441fdb6b1b8b51ed43306 (diff)
loplugin:simplifybool
Change-Id: I3f1fa86f62c2b2e32768a8d1e17793161339dad8
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/helper/helper.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/oox/helper/helper.hxx b/include/oox/helper/helper.hxx
index 9585cc138616..f36e6325ebd9 100644
--- a/include/oox/helper/helper.hxx
+++ b/include/oox/helper/helper.hxx
@@ -204,7 +204,7 @@ public:
OptValue& operator=( const Type& rValue ) { set( rValue ); return *this; }
bool operator==( const OptValue& rValue ) const {
- return ( ( mbHasValue == false && rValue.mbHasValue == false ) ||
+ return ( ( !mbHasValue && rValue.mbHasValue == false ) ||
( mbHasValue == rValue.mbHasValue && maValue == rValue.maValue ) );
}
void assignIfUsed( const OptValue& rValue ) { if( rValue.mbHasValue ) set( rValue.maValue ); }