From bfc8102273b1aa11d9c7cd6e0d873f4318ea3939 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 26 Aug 2023 12:40:23 +0200 Subject: [PATCH] Make the ui movable --- include/momo/html_ui.hpp | 5 +++-- src/html_ui.cpp | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/momo/html_ui.hpp b/include/momo/html_ui.hpp index 22afed8..4cfbb2b 100644 --- a/include/momo/html_ui.hpp +++ b/include/momo/html_ui.hpp @@ -81,8 +81,9 @@ namespace momo html_ui(const html_ui&) = delete; html_ui& operator=(const html_ui&) = delete; - html_ui(html_ui&&) = delete; - html_ui& operator=(html_ui&&) = delete; + + html_ui(html_ui&&) noexcept; + html_ui& operator=(html_ui&&) noexcept; void resize(size_t width, size_t height); bool load_url(const std::string& url); diff --git a/src/html_ui.cpp b/src/html_ui.cpp index b40f99f..ceb0a11 100644 --- a/src/html_ui.cpp +++ b/src/html_ui.cpp @@ -10,6 +10,8 @@ namespace momo } html_ui::~html_ui() = default; + html_ui::html_ui(html_ui&&) noexcept = default; + html_ui& html_ui::operator=(html_ui&&) noexcept = default; void html_ui::resize(const size_t width, const size_t height) {