diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-09-27 18:03:30 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-09-27 22:08:28 +0200 |
commit | 120cfc0de67501988edc9ded58d2a534d0b5a70e (patch) | |
tree | bf7c7428279f9ba525bae21db535de260ab34bc0 /splash/SplashFont.h | |
parent | cec2397fc0542516cac16615f63ab89032806a2e (diff) |
Add some const
Suggested by clang-tidy readability-non-const-parameter check
Diffstat (limited to 'splash/SplashFont.h')
-rw-r--r-- | splash/SplashFont.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/splash/SplashFont.h b/splash/SplashFont.h index 45875c9f..8677f017 100644 --- a/splash/SplashFont.h +++ b/splash/SplashFont.h @@ -46,7 +46,7 @@ class SplashPath; class SplashFont { public: - SplashFont(SplashFontFile *fontFileA, SplashCoord *matA, + SplashFont(SplashFontFile *fontFileA, const SplashCoord *matA, const SplashCoord *textMatA, bool aaA); // This must be called after the constructor, so that the subclass @@ -61,7 +61,7 @@ public: SplashFontFile *getFontFile() { return fontFile; } // Return true if <this> matches the specified font file and matrix. - bool matches(SplashFontFile *fontFileA, SplashCoord *matA, + bool matches(SplashFontFile *fontFileA, const SplashCoord *matA, const SplashCoord *textMatA) const { return fontFileA == fontFile && matA[0] == mat[0] && matA[1] == mat[1] && |