diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-10 19:38:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-10 19:38:50 +0300 |
commit | 7e53a47d6f3e2dfb1446384e674f9d391bd23f7a (patch) | |
tree | fc70f25f54b3111af649d951eafbff4a2d1b2e4b /src/resources/dye/dyepalette.cpp | |
parent | 7789f85902979a3ce1282449af0236079d9925a2 (diff) | |
download | manaplus-7e53a47d6f3e2dfb1446384e674f9d391bd23f7a.tar.gz manaplus-7e53a47d6f3e2dfb1446384e674f9d391bd23f7a.tar.bz2 manaplus-7e53a47d6f3e2dfb1446384e674f9d391bd23f7a.tar.xz manaplus-7e53a47d6f3e2dfb1446384e674f9d391bd23f7a.zip |
Add restrict and noexcept in dye and dyepalette.
Diffstat (limited to 'src/resources/dye/dyepalette.cpp')
-rw-r--r-- | src/resources/dye/dyepalette.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/dye/dyepalette.cpp b/src/resources/dye/dyepalette.cpp index b2b2d9832..dbb8e4973 100644 --- a/src/resources/dye/dyepalette.cpp +++ b/src/resources/dye/dyepalette.cpp @@ -97,9 +97,9 @@ DyePalette::DyePalette(const std::string &restrict description, logger->log("Error, invalid embedded palette: %s", description.c_str()); } -void DyePalette::hexToColor(const std::string &hexStr, +void DyePalette::hexToColor(const std::string &restrict hexStr, const uint8_t blockSize, - DyeColor &color) + DyeColor &color) noexcept2 { for (size_t i = 0, colorIdx = 0; i < blockSize && colorIdx < 4; @@ -111,7 +111,7 @@ void DyePalette::hexToColor(const std::string &hexStr, } } -unsigned int DyePalette::hexDecode(const signed char c) +unsigned int DyePalette::hexDecode(const signed char c) noexcept2 { if ('0' <= c && c <= '9') return c - '0'; |