summaryrefslogtreecommitdiff
path: root/include/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-06 14:49:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-10 09:57:24 +0200
commit4250b25c6ae361359300ab6ccde27230f8e01039 (patch)
tree916a8420282928a92ede0760d696997550ae0840 /include/cppcanvas
parent2ed9a2b641682d8612b5404bd3978ed049aa0266 (diff)
teach unnecessaryparen loplugin about identifiers
Change-Id: I5710b51e53779c222cec0bf08cd34bda330fec4b Reviewed-on: https://gerrit.libreoffice.org/39737 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/cppcanvas')
-rw-r--r--include/cppcanvas/color.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cppcanvas/color.hxx b/include/cppcanvas/color.hxx
index 678e431d0846..0a5477cfa995 100644
--- a/include/cppcanvas/color.hxx
+++ b/include/cppcanvas/color.hxx
@@ -66,12 +66,12 @@ namespace cppcanvas
inline Color::IntSRGBA makeColor( sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue, sal_uInt8 nAlpha )
{
- return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|(nAlpha);
+ return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|nAlpha;
}
inline sal_Int32 makeColorARGB( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue)
{
- return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue);
+ return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|nBlue;
}
}