summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-01-06 20:32:48 +0300
committerAndrei Karas <akaras@inbox.ru>2016-01-06 20:32:48 +0300
commita403c367e58dcd595eb93d3c4b2eafa162c0ab7d (patch)
tree6ed2522d3a07ed6ad7a78281e1eadfc9f3d0a42a /src/resources
parent4735bb216c4b2017fccb290040d8325445bd51fa (diff)
downloadmanaplus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.gz
manaplus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.bz2
manaplus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.xz
manaplus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.zip
Add noexcept into dyecolor.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/dye/dyecolor.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/resources/dye/dyecolor.h b/src/resources/dye/dyecolor.h
index 1d9ae170c..a7b5bbd7f 100644
--- a/src/resources/dye/dyecolor.h
+++ b/src/resources/dye/dyecolor.h
@@ -25,12 +25,14 @@
struct DyeColor final
{
- DyeColor()
+ DyeColor() noexcept
{
value[3] = 255;
}
- DyeColor(const uint8_t r, const uint8_t g, const uint8_t b)
+ DyeColor(const uint8_t r,
+ const uint8_t g,
+ const uint8_t b) noexcept
{
value[0] = r;
value[1] = g;
@@ -38,8 +40,10 @@ struct DyeColor final
value[3] = 255;
}
- DyeColor(const uint8_t r, const uint8_t g, const uint8_t b,
- const uint8_t a)
+ DyeColor(const uint8_t r,
+ const uint8_t g,
+ const uint8_t b,
+ const uint8_t a) noexcept
{
value[0] = r;
value[1] = g;