diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-24 18:26:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-24 18:26:52 +0300 |
commit | 67ee3168a45ea09a863de5be2e0a94cf1afbe6dc (patch) | |
tree | aa33639f3e70f81444b893bbbb99ab78f6beb2d6 /src/gui/fonts/textchunk.cpp | |
parent | a602d5c2460b197866028cfb3d2aa2b7b3aea80c (diff) | |
download | manaverse-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.cpp | 13 |
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; |