diff --git a/source/common/engine/renderstyle.h b/source/common/engine/renderstyle.h index 272f23ba5..19d788e2c 100644 --- a/source/common/engine/renderstyle.h +++ b/source/common/engine/renderstyle.h @@ -55,7 +55,7 @@ enum ETexMode }; // Legacy render styles -enum ERenderStyle +enum ERenderStyle : int { STYLE_None, // Do not draw STYLE_Normal, // Normal; just copy the image to the screen diff --git a/source/common/textures/bitmap.h b/source/common/textures/bitmap.h index de9850c27..2828be356 100644 --- a/source/common/textures/bitmap.h +++ b/source/common/textures/bitmap.h @@ -108,7 +108,7 @@ public: FBitmap(const FBitmap &other) = delete; // disallow because in nearly all cases this creates an unwanted copy. - FBitmap(FBitmap &&other) + FBitmap(FBitmap &&other) noexcept { data = other.data; Pitch = other.Pitch; @@ -122,7 +122,7 @@ public: FBitmap &operator=(const FBitmap &other) = delete; // disallow because in nearly all cases this creates an unwanted copy. Use Copy instead. - FBitmap &operator=(FBitmap &&other) + FBitmap &operator=(FBitmap &&other) noexcept { if (data != nullptr && FreeBuffer) delete[] data; data = other.data; diff --git a/source/common/utility/zstring.cpp b/source/common/utility/zstring.cpp index 160647b7b..ecd0dc7e6 100644 --- a/source/common/utility/zstring.cpp +++ b/source/common/utility/zstring.cpp @@ -217,7 +217,7 @@ FString &FString::operator = (const FString &other) return *this; } -FString &FString::operator = (FString &&other) +FString &FString::operator = (FString &&other) noexcept { assert (Chars != NULL); diff --git a/source/common/utility/zstring.h b/source/common/utility/zstring.h index 5913d1e19..93d679021 100644 --- a/source/common/utility/zstring.h +++ b/source/common/utility/zstring.h @@ -179,7 +179,7 @@ public: const char &operator[] (unsigned long long index) const { return Chars[index]; } FString &operator = (const FString &other); - FString &operator = (FString &&other); + FString &operator = (FString &&other) noexcept; FString &operator = (const char *copyStr); FString operator + (const FString &tail) const;