diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-14 12:04:03 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-14 12:15:11 +0200 |
commit | b97e42dcaa0c5c7d9d31ac0aab23369cc88adae5 (patch) | |
tree | 22d4c42ed03ea25dbe18dedaedcd25a043164c0d /Libraries/LibGUI | |
parent | 9bdd8ec3f330437a621686ce0b4f01586bcaac4d (diff) | |
download | serenity-b97e42dcaa0c5c7d9d31ac0aab23369cc88adae5.zip |
LibGUI: Make ModelSelection non-copyable and non-movable
These are meant to be attached to an AbstractView at all times.
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r-- | Libraries/LibGUI/ModelSelection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibGUI/ModelSelection.h b/Libraries/LibGUI/ModelSelection.h index 1581126e3c..f31e08ae99 100644 --- a/Libraries/LibGUI/ModelSelection.h +++ b/Libraries/LibGUI/ModelSelection.h @@ -31,10 +31,14 @@ #include <AK/TemporaryChange.h> #include <AK/Vector.h> #include <LibGUI/ModelIndex.h> +#include <AK/Noncopyable.h> namespace GUI { class ModelSelection { + AK_MAKE_NONCOPYABLE(ModelSelection); + AK_MAKE_NONMOVABLE(ModelSelection); + public: ModelSelection(AbstractView& view) : m_view(view) |