diff options
author | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-12-15 12:49:06 +1100 |
commit | 3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920 (patch) | |
tree | 0eac4ed28358e0496be6a35f77891b308849b477 /src/Selection.h | |
parent | 7c020de8903c45bcc32795e28cc13a32285513f3 (diff) | |
download | scintilla-mirror-3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920.tar.gz |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'src/Selection.h')
-rw-r--r-- | src/Selection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Selection.h b/src/Selection.h index d7c7d79ad..956a0f99d 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -88,9 +88,9 @@ struct SelectionRange { SelectionRange() : caret(), anchor() { } - SelectionRange(SelectionPosition single) : caret(single), anchor(single) { + explicit SelectionRange(SelectionPosition single) : caret(single), anchor(single) { } - SelectionRange(int single) : caret(single), anchor(single) { + explicit SelectionRange(int single) : caret(single), anchor(single) { } SelectionRange(SelectionPosition caret_, SelectionPosition anchor_) : caret(caret_), anchor(anchor_) { } |