summaryrefslogtreecommitdiff
path: root/canvas/source/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:24:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:19 +0200
commit3ac5138cfc01c1795ae05963fa4e5a6c7d22f4de (patch)
tree60c0b053ae6773a840aaa65d1679c92832072845 /canvas/source/vcl
parented83ba34a55857f1a4f1c1f1577bb25dcf733bd4 (diff)
loplugin:simplifybool
Change-Id: I8087e16e50c06534e7d9a08c3bc72ab53de9f126
Diffstat (limited to 'canvas/source/vcl')
-rw-r--r--canvas/source/vcl/canvasfont.cxx2
-rw-r--r--canvas/source/vcl/spritecanvas.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/canvas/source/vcl/canvasfont.cxx b/canvas/source/vcl/canvasfont.cxx
index 7efcd3196cae..5477ea6bb257 100644
--- a/canvas/source/vcl/canvasfont.cxx
+++ b/canvas/source/vcl/canvasfont.cxx
@@ -51,7 +51,7 @@ namespace vclcanvas
{
maFont->SetAlign( ALIGN_BASELINE );
maFont->SetCharSet( (rFontRequest.FontDescription.IsSymbolFont==com::sun::star::util::TriState_YES) ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );
- maFont->SetVertical( (rFontRequest.FontDescription.IsVertical==com::sun::star::util::TriState_YES) ? true : false );
+ maFont->SetVertical( rFontRequest.FontDescription.IsVertical==com::sun::star::util::TriState_YES );
// TODO(F2): improve panose->vclenum conversion
maFont->SetWeight( static_cast<FontWeight>(rFontRequest.FontDescription.FontDescription.Weight) );
diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx
index 9dc31332ef0c..bcfe42d91b48 100644
--- a/canvas/source/vcl/spritecanvas.cxx
+++ b/canvas/source/vcl/spritecanvas.cxx
@@ -145,7 +145,7 @@ namespace vclcanvas
// avoid repaints on hidden window (hidden: not mapped to
// screen). Return failure, since the screen really has _not_
// been updated (caller should try again later)
- return !mbIsVisible ? false : maCanvasHelper.updateScreen(bUpdateAll,
+ return !mbIsVisible && maCanvasHelper.updateScreen(bUpdateAll,
mbSurfaceDirty);
}