diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-06 20:32:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-06 20:32:48 +0300 |
commit | a403c367e58dcd595eb93d3c4b2eafa162c0ab7d (patch) | |
tree | 6ed2522d3a07ed6ad7a78281e1eadfc9f3d0a42a | |
parent | 4735bb216c4b2017fccb290040d8325445bd51fa (diff) | |
download | plus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.gz plus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.bz2 plus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.tar.xz plus-a403c367e58dcd595eb93d3c4b2eafa162c0ab7d.zip |
Add noexcept into dyecolor.
-rw-r--r-- | src/resources/dye/dyecolor.h | 12 |
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; |