diff --git a/include/AudioStream.hpp b/include/AudioStream.hpp index f70c6a72..c280c830 100644 --- a/include/AudioStream.hpp +++ b/include/AudioStream.hpp @@ -60,7 +60,7 @@ class AudioStream : public ::AudioStream { AudioStream& operator=(const AudioStream&) = delete; - AudioStream& operator=(AudioStream&& other) { + AudioStream& operator=(AudioStream&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Font.hpp b/include/Font.hpp index 6df7e517..e755a3c8 100644 --- a/include/Font.hpp +++ b/include/Font.hpp @@ -122,7 +122,7 @@ class Font : public ::Font { Font& operator=(const Font&) = delete; - Font& operator=(Font&& other) { + Font& operator=(Font&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Image.hpp b/include/Image.hpp index f6967c12..65fdf4de 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -203,7 +203,7 @@ class Image : public ::Image { return *this; } - Image& operator=(Image&& other) { + Image& operator=(Image&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Material.hpp b/include/Material.hpp index fbb5dfed..02c87eef 100644 --- a/include/Material.hpp +++ b/include/Material.hpp @@ -59,8 +59,8 @@ class Material : public ::Material { Material& operator=(const Material&) = delete; - Material& operator=(Material&& other) { - if (this != &other) { + Material& operator=(Material&& other) noexcept { + if (this == &other) { return *this; } diff --git a/include/Mesh.hpp b/include/Mesh.hpp index 9e7ae93c..01040721 100644 --- a/include/Mesh.hpp +++ b/include/Mesh.hpp @@ -161,8 +161,8 @@ class Mesh : public ::Mesh { Mesh& operator=(const Mesh&) = delete; - Mesh& operator=(Mesh&& other) { - if (this != &other) { + Mesh& operator=(Mesh&& other) noexcept { + if (this == &other) { return *this; } diff --git a/include/Model.hpp b/include/Model.hpp index 894aa334..9b26fba0 100644 --- a/include/Model.hpp +++ b/include/Model.hpp @@ -65,8 +65,8 @@ class Model : public ::Model { Model& operator=(const Model&) = delete; - Model& operator=(Model&& other) { - if (this != &other) { + Model& operator=(Model&& other) noexcept { + if (this == &other) { return *this; } diff --git a/include/ModelAnimation.hpp b/include/ModelAnimation.hpp index 91f46c8c..3ad91bec 100644 --- a/include/ModelAnimation.hpp +++ b/include/ModelAnimation.hpp @@ -58,8 +58,8 @@ class ModelAnimation : public ::ModelAnimation { ModelAnimation& operator=(const ModelAnimation&) = delete; - ModelAnimation& operator=(ModelAnimation&& other) { - if (this != &other) { + ModelAnimation& operator=(ModelAnimation&& other) noexcept { + if (this == &other) { return *this; } diff --git a/include/Music.hpp b/include/Music.hpp index 37c22d53..094848bd 100644 --- a/include/Music.hpp +++ b/include/Music.hpp @@ -82,7 +82,7 @@ class Music : public ::Music { Music& operator=(const Music&) = delete; - Music& operator=(Music&& other) { + Music& operator=(Music&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/RenderTexture.hpp b/include/RenderTexture.hpp index dd437293..fbbb41e6 100644 --- a/include/RenderTexture.hpp +++ b/include/RenderTexture.hpp @@ -51,7 +51,7 @@ class RenderTexture : public ::RenderTexture { RenderTexture& operator=(const RenderTexture&) = delete; - RenderTexture& operator=(RenderTexture&& other) { + RenderTexture& operator=(RenderTexture&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Shader.hpp b/include/Shader.hpp index 68687e75..146248fa 100644 --- a/include/Shader.hpp +++ b/include/Shader.hpp @@ -64,8 +64,8 @@ class Shader : public ::Shader { Shader& operator=(const Shader&) = delete; - Shader& operator=(Shader&& other) { - if (this != &other) { + Shader& operator=(Shader&& other) noexcept { + if (this == &other) { return *this; } diff --git a/include/Sound.hpp b/include/Sound.hpp index 283a76dd..7049f43a 100644 --- a/include/Sound.hpp +++ b/include/Sound.hpp @@ -66,7 +66,7 @@ class Sound : public ::Sound { GETTERSETTER(unsigned int, FrameCount, frameCount) GETTERSETTER(::AudioStream, Stream, stream) - Sound& operator=(Sound&& other) { + Sound& operator=(Sound&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Texture.hpp b/include/Texture.hpp index 5d39b918..cb2e6aa7 100644 --- a/include/Texture.hpp +++ b/include/Texture.hpp @@ -97,7 +97,7 @@ class Texture : public ::Texture { Texture& operator=(const Texture&) = delete; - Texture& operator=(Texture&& other) { + Texture& operator=(Texture&& other) noexcept { if (this == &other) { return *this; } diff --git a/include/Wave.hpp b/include/Wave.hpp index 3e3efb2a..fe1f50b3 100644 --- a/include/Wave.hpp +++ b/include/Wave.hpp @@ -77,7 +77,7 @@ class Wave : public ::Wave { } Wave& operator=(const Wave& other) { - if (&other != this) { + if (this == &other) { return *this; } @@ -87,7 +87,7 @@ class Wave : public ::Wave { return *this; } - Wave& operator=(Wave&& other) { + Wave& operator=(Wave&& other) noexcept { if (this != &other) { return *this; }