diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:32:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:24 +0200 |
commit | c718cfd7431d5909f66547a2042bd303f79cfde0 (patch) | |
tree | e611425d70279e0566e7c4011de4337306d94d4a /oox | |
parent | 1f7825a82909c2b6131441fdb6b1b8b51ed43306 (diff) |
loplugin:simplifybool
Change-Id: I3f1fa86f62c2b2e32768a8d1e17793161339dad8
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/chart/seriescontext.cxx | 2 | ||||
-rw-r--r-- | oox/source/ppt/timenodelistcontext.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/chart/seriescontext.cxx b/oox/source/drawingml/chart/seriescontext.cxx index dc8d10f4cc5e..9306e6371089 100644 --- a/oox/source/drawingml/chart/seriescontext.cxx +++ b/oox/source/drawingml/chart/seriescontext.cxx @@ -41,7 +41,7 @@ ContextHandlerRef lclDataLabelSharedCreateContext( ContextHandler2& rContext, if( rContext.isRootElement() ) switch( nElement ) { case C_TOKEN( delete ): - orModel.mbDeleted = rAttribs.getBool( XML_val, bMSO2007 ? false : true ); + orModel.mbDeleted = rAttribs.getBool( XML_val, !bMSO2007 ); return 0; case C_TOKEN( dLblPos ): orModel.monLabelPos = rAttribs.getToken( XML_val, XML_TOKEN_INVALID ); diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 57dccc0bdf64..b6d978e1ac96 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -859,7 +859,7 @@ namespace oox { namespace ppt { if( !sFilter.isEmpty() ) { SlideTransition aFilter( sFilter ); - aFilter.setMode( nDir == XML_out ? false : true ); + aFilter.setMode( nDir != XML_out ); pNode->setTransitionFilter( aFilter ); } } |