summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 02:04:19 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 02:04:19 +0300
commit2a6d489d8c576988cddaabb8bd5f7e1647ba81e0 (patch)
treea221fbb328374887d189e2c1115a9eda278face5 /src
parent080d5b0432549af7739cab604315f08c41ee26a3 (diff)
downloadmanaverse-2a6d489d8c576988cddaabb8bd5f7e1647ba81e0.tar.gz
manaverse-2a6d489d8c576988cddaabb8bd5f7e1647ba81e0.tar.bz2
manaverse-2a6d489d8c576988cddaabb8bd5f7e1647ba81e0.tar.xz
manaverse-2a6d489d8c576988cddaabb8bd5f7e1647ba81e0.zip
Add restrict keyword in textchunksmall.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fonts/textchunksmall.cpp4
-rw-r--r--src/gui/fonts/textchunksmall.h12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/fonts/textchunksmall.cpp b/src/gui/fonts/textchunksmall.cpp
index 643ae84a1..38dcde486 100644
--- a/src/gui/fonts/textchunksmall.cpp
+++ b/src/gui/fonts/textchunksmall.cpp
@@ -51,7 +51,7 @@ bool TextChunkSmall::operator<(const TextChunkSmall &chunk) const
if (chunk.text != text)
return chunk.text > text;
- const Color &c = chunk.color;
+ const Color &restrict c = chunk.color;
if (c.r != color.r)
return c.r > color.r;
if (c.g != color.g)
@@ -59,7 +59,7 @@ bool TextChunkSmall::operator<(const TextChunkSmall &chunk) const
if (c.b != color.b)
return c.b > color.b;
- const Color &c2 = chunk.color2;
+ const Color &restrict c2 = chunk.color2;
if (c2.r != color2.r)
return c2.r > color2.r;
if (c2.g != color2.g)
diff --git a/src/gui/fonts/textchunksmall.h b/src/gui/fonts/textchunksmall.h
index fcf7931ba..cf0277547 100644
--- a/src/gui/fonts/textchunksmall.h
+++ b/src/gui/fonts/textchunksmall.h
@@ -30,14 +30,14 @@
class TextChunkSmall final
{
public:
- TextChunkSmall(const std::string &text0,
- const Color &color0,
- const Color &color1);
+ TextChunkSmall(const std::string &restrict text0,
+ const Color &restrict color0,
+ const Color &restrict color1);
- TextChunkSmall(const TextChunkSmall &old);
+ TextChunkSmall(const TextChunkSmall &restrict old);
- bool operator==(const TextChunkSmall &chunk) const;
- bool operator<(const TextChunkSmall &chunk) const;
+ bool operator==(const TextChunkSmall &restrict chunk) const restrict;
+ bool operator<(const TextChunkSmall &restrict chunk) const restrict;
std::string text;
Color color;