summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-16 21:19:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-16 21:19:06 +0200
commit40a26be24bd64a6c7c8cc98228fd440c8b9323b5 (patch)
treea9477bc6653dacf6effb2c57d6366e5ebe32ce21 /vcl
parent4f8b87d9bcd31aef8f0b22095a3d02715f943ee9 (diff)
loplugin:implicitboolconversion gold
Change-Id: Ie0768c822d1271cacd230f8bd9a4c7987e1ebba3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/salbmp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index fd0fe7d22b8e..a0e5ca4e8b2a 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -414,8 +414,8 @@ public:
}
virtual void WritePixel( ColorData nColor ) SAL_OVERRIDE
{
- *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) ||
- ((COLORDATA_GREEN( nColor ) & 0xf8 ) << 2 ) ||
+ *pData++ = ((COLORDATA_RED( nColor ) & 0xf8 ) << 7 ) |
+ ((COLORDATA_GREEN( nColor ) & 0xf8 ) << 2 ) |
((COLORDATA_BLUE( nColor ) & 0xf8 ) >> 3 );
}
};