From a334e85a2f0885b0d931fe80c50c4b3d07af7dd5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 25 Apr 2017 10:33:32 +0200 Subject: clang-tidy readability-simplify-boolean-expr in vcl Change-Id: I10ad38bcb5b05a754de9a396f4aaa79d97458d6f Reviewed-on: https://gerrit.libreoffice.org/36930 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/filter/GraphicNativeTransform.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'vcl/source/filter/GraphicNativeTransform.cxx') diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx index fc6143296072..187d3d089a61 100644 --- a/vcl/source/filter/GraphicNativeTransform.cxx +++ b/vcl/source/filter/GraphicNativeTransform.cxx @@ -44,15 +44,10 @@ bool GraphicNativeTransform::canBeRotated() return false; } - if ( aLink.GetType() == GfxLinkType::NativeJpg + return aLink.GetType() == GfxLinkType::NativeJpg || aLink.GetType() == GfxLinkType::NativePng || aLink.GetType() == GfxLinkType::NativeGif - || aLink.GetType() == GfxLinkType::NONE) - { - return true; - } - - return false; + || aLink.GetType() == GfxLinkType::NONE; } bool GraphicNativeTransform::rotate(sal_uInt16 aInputRotation) -- cgit