Kaydet (Commit) 5e4476b6 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:oncevar

Change-Id: I678b1bf281ae4de4a75f8c83398ee19f75b4f278
üst 0451703e
......@@ -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 ] ];
......
......@@ -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;
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment