summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2020-03-19 17:17:04 +0100
committerAlbert Astals Cid <aacid@kde.org>2020-03-19 17:18:13 +0100
commit4813adfada062a9161b55e412e3997b748123f7f (patch)
treea16ead1f108fd8df77c3b0c04c4c900ccfac4c82 /splash
parent81a86064c14a7fc25047b6040d65464e732cf501 (diff)
Some more const
Diffstat (limited to 'splash')
-rw-r--r--splash/SplashFTFont.cc4
-rw-r--r--splash/SplashScreen.cc8
-rw-r--r--splash/SplashScreen.h6
3 files changed, 9 insertions, 9 deletions
diff --git a/splash/SplashFTFont.cc b/splash/SplashFTFont.cc
index 1eafd3ee..48cfb39d 100644
--- a/splash/SplashFTFont.cc
+++ b/splash/SplashFTFont.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, 2007-2011, 2014, 2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2005, 2007-2011, 2014, 2018, 2020 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2006 Kristian Høgsberg <krh@bitplanet.net>
// Copyright (C) 2009 Petr Gajdos <pgajdos@novell.com>
// Copyright (C) 2010 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
@@ -327,7 +327,7 @@ struct SplashFTFontPath {
};
SplashPath *SplashFTFont::getGlyphPath(int c) {
- static FT_Outline_Funcs outlineFuncs = {
+ static const FT_Outline_Funcs outlineFuncs = {
#if FREETYPE_MINOR <= 1
(int (*)(FT_Vector *, void *))&glyphPathMoveTo,
(int (*)(FT_Vector *, void *))&glyphPathLineTo,
diff --git a/splash/SplashScreen.cc b/splash/SplashScreen.cc
index 28a9917e..eac54587 100644
--- a/splash/SplashScreen.cc
+++ b/splash/SplashScreen.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) 2009, 2016, 2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2009, 2016, 2018, 2020 Albert Astals Cid <aacid@kde.org>
// Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
//
// To see a description of the changes please see the Changelog file that
@@ -30,7 +30,7 @@
#include "SplashMath.h"
#include "SplashScreen.h"
-static SplashScreenParams defaultParams = {
+static const SplashScreenParams defaultParams = {
splashScreenDispersed, // type
2, // size
2, // dotRadius
@@ -62,7 +62,7 @@ struct cmpDistancesFunctor {
// sqrt(2)). If <clustered> is false, this generates an optimal
// threshold matrix using recursive tesselation. Gamma correction
// (gamma = 1 / 1.33) is also computed here.
-SplashScreen::SplashScreen(SplashScreenParams *params) {
+SplashScreen::SplashScreen(const SplashScreenParams *params) {
if (!params) {
params = &defaultParams;
@@ -80,7 +80,7 @@ void SplashScreen::createMatrix()
unsigned char u;
int black, white, i;
- SplashScreenParams *params = screenParams;
+ const SplashScreenParams *params = screenParams;
// size must be a power of 2, and at least 2
for (size = 2, log2Size = 1; size < params->size; size <<= 1, ++log2Size) ;
diff --git a/splash/SplashScreen.h b/splash/SplashScreen.h
index ef12cc0a..27b48b50 100644
--- a/splash/SplashScreen.h
+++ b/splash/SplashScreen.h
@@ -11,7 +11,7 @@
// All changes made under the Poppler project to this file are licensed
// under GPL version 2 or later
//
-// Copyright (C) 2009, 2018 Albert Astals Cid <aacid@kde.org>
+// Copyright (C) 2009, 2018, 2020 Albert Astals Cid <aacid@kde.org>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -32,7 +32,7 @@
class SplashScreen {
public:
- SplashScreen(SplashScreenParams *params);
+ SplashScreen(const SplashScreenParams *params);
SplashScreen(SplashScreen *screen);
~SplashScreen();
@@ -65,7 +65,7 @@ private:
int distance(int x0, int y0, int x1, int y1);
void buildSCDMatrix(int r);
- SplashScreenParams *screenParams; // params to create the other members
+ const SplashScreenParams *screenParams; // params to create the other members
unsigned char *mat; // threshold matrix
int size; // size of the threshold matrix
int sizeM1; // size - 1