summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-27 14:50:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-28 09:04:51 +0200
commite871c9cb7ce4f3df2ba6780be62ed46b5ee7a410 (patch)
tree9204fac0ea61289899129c30582f3a108680f6a3 /canvas
parent41d8b41767032681a9897b7551f011d450e3725e (diff)
loplugin:simplifybool in canvas..cui
Change-Id: Ib7c3b381ce4456e3d48538ee6f762ceaf2784fe1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94973 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/verifyinput.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/canvas/source/tools/verifyinput.cxx b/canvas/source/tools/verifyinput.cxx
index de69da5e744a..9d0020c12da9 100644
--- a/canvas/source/tools/verifyinput.cxx
+++ b/canvas/source/tools/verifyinput.cxx
@@ -295,8 +295,8 @@ namespace canvas::tools
#endif
}
- if( !(renderState.CompositeOperation < rendering::CompositeOperation::CLEAR ||
- renderState.CompositeOperation > rendering::CompositeOperation::SATURATE) )
+ if( renderState.CompositeOperation >= rendering::CompositeOperation::CLEAR &&
+ renderState.CompositeOperation <= rendering::CompositeOperation::SATURATE )
return;
#if OSL_DEBUG_LEVEL > 0
@@ -361,8 +361,8 @@ namespace canvas::tools
#endif
}
- if( !(texture.RepeatModeY < rendering::TexturingMode::NONE ||
- texture.RepeatModeY > rendering::TexturingMode::REPEAT) )
+ if( texture.RepeatModeY >= rendering::TexturingMode::NONE &&
+ texture.RepeatModeY <= rendering::TexturingMode::REPEAT )
return;
#if OSL_DEBUG_LEVEL > 0
@@ -483,8 +483,8 @@ namespace canvas::tools
#endif
}
- if( !(strokeAttributes.JoinType < rendering::PathJoinType::NONE ||
- strokeAttributes.JoinType > rendering::PathJoinType::BEVEL) )
+ if( strokeAttributes.JoinType >= rendering::PathJoinType::NONE &&
+ strokeAttributes.JoinType <= rendering::PathJoinType::BEVEL )
return;
#if OSL_DEBUG_LEVEL > 0
@@ -552,8 +552,8 @@ namespace canvas::tools
#endif
}
- if( !(bitmapLayout.ColorSpace->getEndianness() < util::Endianness::LITTLE ||
- bitmapLayout.ColorSpace->getEndianness() > util::Endianness::BIG) )
+ if( bitmapLayout.ColorSpace->getEndianness() >= util::Endianness::LITTLE &&
+ bitmapLayout.ColorSpace->getEndianness() <= util::Endianness::BIG )
return;
#if OSL_DEBUG_LEVEL > 0