summaryrefslogtreecommitdiff
path: root/src/gui/fonts/textchunk.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:52 +0300
commit67ee3168a45ea09a863de5be2e0a94cf1afbe6dc (patch)
treeaa33639f3e70f81444b893bbbb99ab78f6beb2d6 /src/gui/fonts/textchunk.cpp
parenta602d5c2460b197866028cfb3d2aa2b7b3aea80c (diff)
downloadmanaverse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.gz
manaverse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.bz2
manaverse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.tar.xz
manaverse-67ee3168a45ea09a863de5be2e0a94cf1afbe6dc.zip
Fix compilation with clang.
Diffstat (limited to 'src/gui/fonts/textchunk.cpp')
-rw-r--r--src/gui/fonts/textchunk.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/fonts/textchunk.cpp b/src/gui/fonts/textchunk.cpp
index b88f4830e..707435ace 100644
--- a/src/gui/fonts/textchunk.cpp
+++ b/src/gui/fonts/textchunk.cpp
@@ -61,10 +61,10 @@ TextChunk::TextChunk() :
#endif
}
-TextChunk::TextChunk(const std::string &text0,
- const Color &color0,
- const Color &color1,
- Font *const font) :
+TextChunk::TextChunk(const std::string &restrict text0,
+ const Color &restrict color0,
+ const Color &restrict color1,
+ Font *restrict const font) :
img(nullptr),
textFont(font),
text(text0),
@@ -86,13 +86,14 @@ TextChunk::~TextChunk()
#endif
}
-bool TextChunk::operator==(const TextChunk &chunk) const
+bool TextChunk::operator==(const TextChunk &restrict chunk) const
{
return (chunk.text == text && chunk.color == color
&& chunk.color2 == color2);
}
-void TextChunk::generate(TTF_Font *const font, const float alpha)
+void TextChunk::generate(TTF_Font *restrict const font,
+ const float alpha)
{
BLOCK_START("TextChunk::generate")
SDL_Color sdlCol;