From 7e53a47d6f3e2dfb1446384e674f9d391bd23f7a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Dec 2016 19:38:50 +0300 Subject: Add restrict and noexcept in dye and dyepalette. --- src/resources/dye/dye.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/resources/dye/dye.h') diff --git a/src/resources/dye/dye.h b/src/resources/dye/dye.h index 44052822b..6313fa255 100644 --- a/src/resources/dye/dye.h +++ b/src/resources/dye/dye.h @@ -63,19 +63,19 @@ class Dye final /** * Return special dye palete (S) */ - const DyePalette *getSPalete() const A_WARN_UNUSED + const DyePalette *getSPalete() const restrict2 noexcept2 A_WARN_UNUSED { return mDyePalettes[sPaleteIndex]; } /** * Return special dye palete (A) */ - const DyePalette *getAPalete() const A_WARN_UNUSED + const DyePalette *getAPalete() const restrict2 noexcept2 A_WARN_UNUSED { return mDyePalettes[aPaleteIndex]; } /** * Return dye type for S - 1, for A - 2, 0 for other */ - int getType() const restrict2 A_WARN_UNUSED; + int getType() const restrict2 noexcept2 A_WARN_UNUSED; void normalDye(uint32_t *restrict pixels, const int bufSize) const restrict2; -- cgit v1.2.3-60-g2f50