summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-07 08:14:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-07 08:14:27 +0200
commit5e4476b6ecda4be8a3271185bfc5d1aff58ce3af (patch)
tree088c9a686397b2d99cf51d559db209ede86f198d /vcl
parent0451703e2eff960c12443e2ab8d58b2d91754f3c (diff)
loplugin:oncevar
Change-Id: I678b1bf281ae4de4a75f8c83398ee19f75b4f278
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/a11ywrapper.mm2
-rw-r--r--vcl/osx/salnativewidgets.cxx2
-rw-r--r--vcl/osx/salobj.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm
index 15123c826854..0f083126cbfc 100644
--- a/vcl/osx/a11ywrapper.mm
+++ b/vcl/osx/a11ywrapper.mm
@@ -157,7 +157,7 @@ static std::ostream &operator<<(std::ostream &s, NSObject *obj) {
if ( ! asGetter ) {
[ methodName appendString: @"set" ];
}
- NSRange aRange = { 2, 1 };
+ NSRange const aRange = { 2, 1 };
NSString * firstChar = [ attribute substringWithRange: aRange ]; // drop leading "AX" and get first char
if ( asGetter ) {
[ methodName appendString: [ firstChar lowercaseString ] ];
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index b88aadb444e7..56ac7f2131bf 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -590,7 +590,7 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
// Perhaps some other HIThemeButtonDrawInfo setting would do the trick ?
CGContextSetShouldAntialias( mrContext, true );
- CGFloat aGrey[] = { 0.45, 0.45, 0.45, 1.0 };
+ CGFloat const aGrey[] = { 0.45, 0.45, 0.45, 1.0 };
CGContextSetFillColor( mrContext, aGrey );
CGContextBeginPath( mrContext );
float x = rc.origin.x + rc.size.width;
diff --git a/vcl/osx/salobj.cxx b/vcl/osx/salobj.cxx
index b9170f706c38..957f017363fc 100644
--- a/vcl/osx/salobj.cxx
+++ b/vcl/osx/salobj.cxx
@@ -59,7 +59,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowDat
if (pWindowData->bLegacy)
{
- NSOpenGLPixelFormatAttribute aAttributes[] =
+ NSOpenGLPixelFormatAttribute const aAttributes[] =
{
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAAlphaSize, 8,
@@ -74,7 +74,7 @@ AquaSalObject::AquaSalObject( AquaSalFrame* pFrame, SystemWindowData* pWindowDat
}
else
{
- NSOpenGLPixelFormatAttribute aAttributes[] =
+ NSOpenGLPixelFormatAttribute const aAttributes[] =
{
NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,
NSOpenGLPFADoubleBuffer,