From a403c367e58dcd595eb93d3c4b2eafa162c0ab7d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jan 2016 20:32:48 +0300 Subject: Add noexcept into dyecolor. --- src/resources/dye/dyecolor.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2