summaryrefslogtreecommitdiff
path: root/src/editor.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2012-11-26 18:50:34 +0100
committerMaxime Coste <frrrwww@gmail.com>2012-11-26 18:50:34 +0100
commite77ca7a4be3adc8d11503b1186b8fac257a1624c (patch)
tree280d6b82332be2645208840e216d8b56887e5e00 /src/editor.cc
parent9effba2c667cba653e7c8bd78cc86b1d12a10c9b (diff)
minor code simplification
Diffstat (limited to 'src/editor.cc')
-rw-r--r--src/editor.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/editor.cc b/src/editor.cc
index 380c07ba..eeffe41f 100644
--- a/src/editor.cc
+++ b/src/editor.cc
@@ -306,8 +306,7 @@ bool Editor::undo()
if (res)
{
m_selections.clear();
- m_selections.push_back(Selection(listener.first(),
- listener.last()));
+ m_selections.emplace_back(listener.first(), listener.last());
}
return res;
}
@@ -319,8 +318,7 @@ bool Editor::redo()
if (res)
{
m_selections.clear();
- m_selections.push_back(Selection(listener.first(),
- listener.last()));
+ m_selections.emplace_back(listener.first(), listener.last());
}
return res;
}