minor backend update from GZDoom.

This commit is contained in:
Christoph Oelckers 2024-01-07 10:05:41 +01:00
parent 57198e0232
commit 48977265ae
4 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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;

View file

@ -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);

View file

@ -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;