diff --git a/client/SDL/SDL2/dialogs/sdl_button.cpp b/client/SDL/SDL2/dialogs/sdl_button.cpp index b174dbf08..e59189056 100644 --- a/client/SDL/SDL2/dialogs/sdl_button.cpp +++ b/client/SDL/SDL2/dialogs/sdl_button.cpp @@ -36,10 +36,7 @@ SdlButton::SdlButton(SDL_Renderer* renderer, std::string label, int id, SDL_Rect update_text(renderer, _name, buttonfontcolor, buttonbackgroundcolor); } -SdlButton::SdlButton(SdlButton&& other) noexcept - : SdlWidget(std::move(other)), _name(std::move(other._name)), _id(other._id) -{ -} +SdlButton::SdlButton(SdlButton&& other) noexcept = default; SdlButton::~SdlButton() = default; diff --git a/client/SDL/SDL2/dialogs/sdl_select.cpp b/client/SDL/SDL2/dialogs/sdl_select.cpp index 8b603703d..d80fa28fc 100644 --- a/client/SDL/SDL2/dialogs/sdl_select.cpp +++ b/client/SDL/SDL2/dialogs/sdl_select.cpp @@ -42,11 +42,7 @@ SdlSelectWidget::SdlSelectWidget(SDL_Renderer* renderer, std::string label, SDL_ update_text(renderer); } -SdlSelectWidget::SdlSelectWidget(SdlSelectWidget&& other) noexcept - : SdlWidget(std::move(other)), _text(std::move(other._text)), _mouseover(other._mouseover), - _highlight(other._highlight) -{ -} +SdlSelectWidget::SdlSelectWidget(SdlSelectWidget&& other) noexcept = default; SdlSelectWidget::~SdlSelectWidget() = default; diff --git a/client/SDL/SDL3/dialogs/sdl_button.cpp b/client/SDL/SDL3/dialogs/sdl_button.cpp index 9c01592cd..3c304b4b4 100644 --- a/client/SDL/SDL3/dialogs/sdl_button.cpp +++ b/client/SDL/SDL3/dialogs/sdl_button.cpp @@ -36,10 +36,7 @@ SdlButton::SdlButton(SDL_Renderer* renderer, std::string label, int id, const SD update_text(renderer, _name, buttonfontcolor, buttonbackgroundcolor); } -SdlButton::SdlButton(SdlButton&& other) noexcept - : SdlWidget(std::move(other)), _name(std::move(other._name)), _id(other._id) -{ -} +SdlButton::SdlButton(SdlButton&& other) noexcept = default; SdlButton::~SdlButton() = default; diff --git a/client/SDL/SDL3/dialogs/sdl_select.cpp b/client/SDL/SDL3/dialogs/sdl_select.cpp index 5385bbc50..2ba0c31b8 100644 --- a/client/SDL/SDL3/dialogs/sdl_select.cpp +++ b/client/SDL/SDL3/dialogs/sdl_select.cpp @@ -42,11 +42,7 @@ SdlSelectWidget::SdlSelectWidget(SDL_Renderer* renderer, std::string label, cons update_text(renderer); } -SdlSelectWidget::SdlSelectWidget(SdlSelectWidget&& other) noexcept - : SdlWidget(std::move(other)), _text(std::move(other._text)), _mouseover(other._mouseover), - _highlight(other._highlight) -{ -} +SdlSelectWidget::SdlSelectWidget(SdlSelectWidget&& other) noexcept = default; bool SdlSelectWidget::set_mouseover(SDL_Renderer* renderer, bool mouseOver) {