diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 10:33:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-25 12:15:17 +0200 |
commit | a334e85a2f0885b0d931fe80c50c4b3d07af7dd5 (patch) | |
tree | b4e2e73f094bf5a00c930af201822f75ffd9a8ec /vcl/source/outdev | |
parent | 633bab98427fa3760c67274082283cd36b4508ca (diff) |
clang-tidy readability-simplify-boolean-expr in vcl
Change-Id: I10ad38bcb5b05a754de9a396f4aaa79d97458d6f
Reviewed-on: https://gerrit.libreoffice.org/36930
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/font.cxx | 4 | ||||
-rw-r--r-- | vcl/source/outdev/nativecontrols.cxx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 93e80855901c..ec2a0e3b1ee7 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -247,9 +247,7 @@ bool OutputDevice::GetFontCharMap( FontCharMapRef& rxFontCharMap ) const else rxFontCharMap = xFontCharMap; - if( rxFontCharMap->IsDefaultMap() ) - return false; - return true; + return !rxFontCharMap->IsDefaultMap(); } bool OutputDevice::GetFontCapabilities( vcl::FontCapabilities& rFontCapabilities ) const diff --git a/vcl/source/outdev/nativecontrols.cxx b/vcl/source/outdev/nativecontrols.cxx index 5dc1fd8c417d..e946d7f9f457 100644 --- a/vcl/source/outdev/nativecontrols.cxx +++ b/vcl/source/outdev/nativecontrols.cxx @@ -53,9 +53,7 @@ static bool EnableNativeWidget( const OutputDevice& i_rDevice ) { const vcl::ExtOutDevData* pOutDevData( i_rDevice.GetExtOutDevData() ); const vcl::PDFExtOutDevData* pPDFData( dynamic_cast< const vcl::PDFExtOutDevData* >( pOutDevData ) ); - if ( pPDFData != nullptr ) - return false; - return true; + return pPDFData == nullptr; } default: |