summaryrefslogtreecommitdiff
path: root/src/gui/fonts/textchunk.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 01:37:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 01:37:41 +0300
commit8cf035f1eded9e002d73353fa7087902f092cf1f (patch)
treef990f25036e47070a4a75c8bfaa9f828204fd221 /src/gui/fonts/textchunk.h
parentb9500567c59f775c75874722747bb858852d3bbe (diff)
downloadmanaplus-8cf035f1eded9e002d73353fa7087902f092cf1f.tar.gz
manaplus-8cf035f1eded9e002d73353fa7087902f092cf1f.tar.bz2
manaplus-8cf035f1eded9e002d73353fa7087902f092cf1f.tar.xz
manaplus-8cf035f1eded9e002d73353fa7087902f092cf1f.zip
Add restrict keyword into textchunk.
Diffstat (limited to 'src/gui/fonts/textchunk.h')
-rw-r--r--src/gui/fonts/textchunk.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/fonts/textchunk.h b/src/gui/fonts/textchunk.h
index 6b8beec35..5224cd3e7 100644
--- a/src/gui/fonts/textchunk.h
+++ b/src/gui/fonts/textchunk.h
@@ -40,28 +40,29 @@ class TextChunk final
public:
TextChunk();
- TextChunk(const std::string &text0,
- const Color &color0,
- const Color &color1,
- Font *const font);
+ TextChunk(const std::string &restrict text0,
+ const Color &restrict color0,
+ const Color &restrict color1,
+ Font *restrict const font);
A_DELETE_COPY(TextChunk)
~TextChunk();
- bool operator==(const TextChunk &chunk) const;
+ bool operator==(const TextChunk &restrict chunk) const restrict;
- void generate(TTF_Font *const font, const float alpha);
+ void generate(TTF_Font *restrict const font,
+ const float alpha) restrict;
- void deleteImage();
+ void deleteImage() restrict;
- Image *img;
- Font *textFont;
+ Image *restrict img;
+ Font *restrict textFont;
std::string text;
Color color;
Color color2;
- TextChunk *prev;
- TextChunk *next;
+ TextChunk *restrict prev;
+ TextChunk *restrict next;
};
#ifdef UNITTESTS