Skip to content

Commit

Permalink
minor backend update from GZDoom.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jan 7, 2024
1 parent 57198e0 commit 4897726
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/common/engine/renderstyle.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions source/common/textures/bitmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class FBitmap

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;
Expand All @@ -122,7 +122,7 @@ class FBitmap

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;
Expand Down
2 changes: 1 addition & 1 deletion source/common/utility/zstring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion source/common/utility/zstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class FString
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;
Expand Down

0 comments on commit 4897726

Please sign in to comment.