diff options
Diffstat (limited to 'src/selection.cc')
-rw-r--r-- | src/selection.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/selection.cc b/src/selection.cc index 0b93fa2..e18e485 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -33,6 +33,18 @@ Selections::Selections() act = SEL_NONE; } +Selections::Selections(const Selections& other) +{ + *this = other; +} + +void Selections::operator=(const Selections& other) +{ + sels = other.sels; + nextid = other.nextid; + act = other.act; +} + sel_id_t Selections::add(Selection selection) { sel_id_t id = nextid++; |