diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:28:52 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-27 15:31:00 +0200 |
commit | c82515eb6b073548543a9d0f3d0153d6cec889ad (patch) | |
tree | 2d4a81006e12eb597717509814abbadada6e002e | |
parent | 44642cbc558ba869c91a629ffc34c6867319069a (diff) |
More loplugin:simplifybool
Change-Id: I4ea5c7e9f807dfd5242c8e87a87d9ad604ebd035
-rw-r--r-- | sdext/source/minimizer/optimizerdialogcontrols.cxx | 8 | ||||
-rw-r--r-- | sdext/source/pdfimport/wrapper/wrapper.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sdext/source/minimizer/optimizerdialogcontrols.cxx b/sdext/source/minimizer/optimizerdialogcontrols.cxx index df12933ca8e0..e8d3eb09bb21 100644 --- a/sdext/source/minimizer/optimizerdialogcontrols.cxx +++ b/sdext/source/minimizer/optimizerdialogcontrols.cxx @@ -506,8 +506,8 @@ void OptimizerDialog::UpdateControlStatesPage2() if ( aResolutionText.isEmpty() ) aResolutionText = OUString::number( nImageResolution ); - setControlProperty( "RadioButton0Pg1", "State", Any( (sal_Int16)( bJPEGCompression == false ) ) ); - setControlProperty( "RadioButton1Pg1", "State", Any( (sal_Int16)( bJPEGCompression == true ) ) ); + setControlProperty( "RadioButton0Pg1", "State", Any( (sal_Int16)( !bJPEGCompression ) ) ); + setControlProperty( "RadioButton1Pg1", "State", Any( (sal_Int16)( bJPEGCompression ) ) ); setControlProperty( "FixedText1Pg1", "Enabled", Any( bJPEGCompression ) ); setControlProperty( "FormattedField0Pg1", "Enabled", Any( bJPEGCompression ) ); setControlProperty( "FormattedField0Pg1", "EffectiveValue", Any( (double)nJPEGQuality ) ); @@ -610,8 +610,8 @@ void OptimizerDialog::UpdateControlStatesPage4() } else { - setControlProperty( "RadioButton0Pg4", "State", Any( (sal_Int16)( bSaveAs == false ) ) ); - setControlProperty( "RadioButton1Pg4", "State", Any( (sal_Int16)( bSaveAs == true ) ) ); + setControlProperty( "RadioButton0Pg4", "State", Any( (sal_Int16)( !bSaveAs ) ) ); + setControlProperty( "RadioButton1Pg4", "State", Any( (sal_Int16)( bSaveAs ) ) ); } setControlProperty( "ComboBox0Pg4", "Enabled", Any( false ) ); diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx index 480a901b250d..aa0cf96a448b 100644 --- a/sdext/source/pdfimport/wrapper/wrapper.cxx +++ b/sdext/source/pdfimport/wrapper/wrapper.cxx @@ -1029,7 +1029,7 @@ bool xpdf_ImportFromFile( const OUString& rURL, // check for encryption, if necessary get password OUString aPwd( rPwd ); bool bIsEncrypted = false; - if( checkEncryption( aSysUPath, xIHdl, aPwd, bIsEncrypted, aDocName ) == false ) + if( !checkEncryption( aSysUPath, xIHdl, aPwd, bIsEncrypted, aDocName ) ) { SAL_INFO( "sdext.pdfimport", |