summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2020-01-07 17:52:27 +0100
committerAlbert Astals Cid <aacid@kde.org>2020-01-07 17:52:27 +0100
commitfad2b7341c6a0cb8f2e0ff2e856739cb389d21ef (patch)
treee20ad7842dfba0c29be579cf0379be5bc0f00582 /splash
parent1bbf480deb1be03fb8c95604a250d4b4f64546d7 (diff)
More static -> static const
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 3d80b5c4..3d4e6177 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2005-2019 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2005-2020 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com>
// Copyright (C) 2010-2016 Thomas Freitag <Thomas.Freitag@alfa.de>
// Copyright (C) 2010 Christian Feuersänger <cfeuersaenger@googlemail.com>
@@ -1378,7 +1378,7 @@ inline void Splash::drawAAPixelInit() {
inline void Splash::drawAAPixel(SplashPipe *pipe, int x, int y) {
#if splashAASize == 4
- static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3,
+ static const int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3,
1, 2, 2, 3, 2, 3, 3, 4 };
int w;
#else
@@ -1461,7 +1461,7 @@ inline void Splash::drawSpan(SplashPipe *pipe, int x0, int x1, int y,
inline void Splash::drawAALine(SplashPipe *pipe, int x0, int x1, int y, bool adjustLine, unsigned char lineOpacity) {
#if splashAASize == 4
- static int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3,
+ static const int bitCount4[16] = { 0, 1, 1, 2, 1, 2, 2, 3,
1, 2, 2, 3, 2, 3, 3, 4 };
SplashColorPtr p0, p1, p2, p3;
int t;