summaryrefslogtreecommitdiff
path: root/vcl/quartz
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-07-16 09:24:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-07-16 11:38:31 +0200
commitbf08ca37324c5a6d6cfe8cc0be5c4d6396fa1341 (patch)
tree9ded9153489a95217b41933565821f1332e014bd /vcl/quartz
parentbe394e1cec8eefd21f5963857b90c2268b511fc5 (diff)
loplugin:simplifyconstruct (macOS)
Change-Id: Ifad405b05142ce61673f22ec3160f50314419ce7 Reviewed-on: https://gerrit.libreoffice.org/75680 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/quartz')
-rw-r--r--vcl/quartz/salbmp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/quartz/salbmp.cxx b/vcl/quartz/salbmp.cxx
index 7f5c87eb8c8e..9936f15ac114 100644
--- a/vcl/quartz/salbmp.cxx
+++ b/vcl/quartz/salbmp.cxx
@@ -324,7 +324,7 @@ public:
}
virtual Color ReadPixel() override
{
- const Color c = Color( pData[1], pData[2], pData[3] );
+ const Color c( pData[1], pData[2], pData[3] );
pData += 4;
return c;
}
@@ -349,7 +349,7 @@ public:
}
virtual Color ReadPixel() override
{
- const Color c = Color( pData[2], pData[1], pData[0] );
+ const Color c( pData[2], pData[1], pData[0] );
pData += 3;
return c;
}
@@ -377,7 +377,7 @@ public:
}
virtual Color ReadPixel() override
{
- const Color c = Color( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 , (*pData & 0x001f) << 3 );
+ const Color c( (*pData & 0xf800) >> 8, (*pData & 0x07e0) >> 3 , (*pData & 0x001f) << 3 );
pData++;
return c;
}