From b4c46f78da230ff3077bc2b96ac66f5ac017c7a2 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 15 Dec 2013 12:49:06 +1100 Subject: Make single argument constructors explicit to avoid unexpected conversions. --- src/Selection.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Selection.cxx') diff --git a/src/Selection.cxx b/src/Selection.cxx index 385e2360e..0c02c198b 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -166,7 +166,7 @@ void SelectionRange::MinimizeVirtualSpace() { } Selection::Selection() : mainRange(0), moveExtends(false), tentativeMain(false), selType(selStream) { - AddSelection(SelectionPosition(0)); + AddSelection(SelectionRange(SelectionPosition(0))); } Selection::~Selection() { -- cgit v1.2.3