1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 12:17:44 +00:00

LibGUI: Make ModelSelection non-copyable and non-movable

These are meant to be attached to an AbstractView at all times.
This commit is contained in:
Andreas Kling 2020-08-14 12:04:03 +02:00
parent 9bdd8ec3f3
commit b97e42dcaa
2 changed files with 5 additions and 1 deletions

View file

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