summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/font.cxx4
-rw-r--r--vcl/source/outdev/nativecontrols.cxx4
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: