summaryrefslogtreecommitdiff
path: root/src/resources/dye/dye.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-26 23:26:41 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-26 23:26:41 +0300
commitb1032f8fde46889a3b9bdb25333f26225a28d0f4 (patch)
tree807badec9e8bc7181fbb1dfcb89cb4f3440c61cd /src/resources/dye/dye.h
parenta8acf366d3e943fb636e24b69c8c67152770d2cc (diff)
downloadplus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.gz
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.bz2
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.tar.xz
plus-b1032f8fde46889a3b9bdb25333f26225a28d0f4.zip
Add restrict keyword into dye.
Diffstat (limited to 'src/resources/dye/dye.h')
-rw-r--r--src/resources/dye/dye.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/resources/dye/dye.h b/src/resources/dye/dye.h
index 02e1b3f05..d3d9ef654 100644
--- a/src/resources/dye/dye.h
+++ b/src/resources/dye/dye.h
@@ -45,7 +45,7 @@ class Dye final
* The parts of string are separated by semi-colons. Each part starts
* by an uppercase letter, followed by a colon and then a palette name.
*/
- explicit Dye(const std::string &dye);
+ explicit Dye(const std::string &restrict dye);
A_DELETE_COPY(Dye)
@@ -75,11 +75,13 @@ class Dye final
/**
* Return dye type for S - 1, for A - 2, 0 for other
*/
- int getType() const A_WARN_UNUSED;
+ int getType() const restrict2 A_WARN_UNUSED;
- void normalDye(uint32_t *restrict pixels, const int bufSize) const;
+ void normalDye(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
- void normalOGLDye(uint32_t *restrict pixels, const int bufSize) const;
+ void normalOGLDye(uint32_t *restrict pixels,
+ const int bufSize) const restrict2;
private:
/**
@@ -87,7 +89,7 @@ class Dye final
*
* Red, Green, Yellow, Blue, Magenta, White (or rather gray), Simple.
*/
- DyePalette *mDyePalettes[dyePalateSize];
+ DyePalette *restrict mDyePalettes[dyePalateSize];
};
#endif // RESOURCES_DYE_DYE_H