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/unx/generic | |
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/unx/generic')
-rw-r--r-- | vcl/unx/generic/desktopdetect/desktopdetector.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/cairotextrender.cxx | 5 | ||||
-rw-r--r-- | vcl/unx/generic/print/genpspgraphics.cxx | 5 |
3 files changed, 3 insertions, 12 deletions
diff --git a/vcl/unx/generic/desktopdetect/desktopdetector.cxx b/vcl/unx/generic/desktopdetect/desktopdetector.cxx index 609f3cb349a9..1518567412f7 100644 --- a/vcl/unx/generic/desktopdetect/desktopdetector.cxx +++ b/vcl/unx/generic/desktopdetect/desktopdetector.cxx @@ -248,10 +248,7 @@ static bool is_kde3_desktop( Display* pDisplay ) } } - if ( KDEVersion( pDisplay ) == 3 ) - return true; - - return false; + return KDEVersion( pDisplay ) == 3; } static bool is_kde4_desktop( Display* pDisplay ) diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx index 6321f64e1c64..c1b4ff193679 100644 --- a/vcl/unx/generic/gdi/cairotextrender.cxx +++ b/vcl/unx/generic/gdi/cairotextrender.cxx @@ -464,10 +464,7 @@ bool CairoTextRender::GetGlyphOutline(const GlyphItem& rGlyph, if( !pSF ) return false; - if( pSF->GetGlyphOutline(rGlyph, rPolyPoly)) - return true; - - return false; + return pSF->GetGlyphOutline(rGlyph, rPolyPoly); } SalLayout* CairoTextRender::GetTextLayout(ImplLayoutArgs& /*rArgs*/, int nFallbackLevel) diff --git a/vcl/unx/generic/print/genpspgraphics.cxx b/vcl/unx/generic/print/genpspgraphics.cxx index be31508dc179..f844fc8789f6 100644 --- a/vcl/unx/generic/print/genpspgraphics.cxx +++ b/vcl/unx/generic/print/genpspgraphics.cxx @@ -781,10 +781,7 @@ bool GenPspGraphics::GetGlyphOutline(const GlyphItem& rGlyph, if( !pSF ) return false; - if (pSF->GetGlyphOutline(rGlyph, rB2DPolyPoly)) - return true; - - return false; + return pSF->GetGlyphOutline(rGlyph, rB2DPolyPoly); } SalLayout* GenPspGraphics::GetTextLayout(ImplLayoutArgs& /*rArgs*/, int nFallbackLevel) |