diff options
author | nyamatongwe <unknown> | 2011-01-02 09:56:17 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-01-02 09:56:17 +1100 |
commit | 2be32592356710eda9419a86da5d85e36a1c8cda (patch) | |
tree | 12631ad89c221a618cae930ae77ae4987f123217 /src/Selection.h | |
parent | d02d58bee77d11650c5166e4d01172e0d2c0a130 (diff) | |
download | scintilla-mirror-2be32592356710eda9419a86da5d85e36a1c8cda.tar.gz |
Avoid cppcheck warnings.
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 75f02f6cd..d7c7d79ad 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -60,7 +60,7 @@ public: struct SelectionSegment { SelectionPosition start; SelectionPosition end; - SelectionSegment() { + SelectionSegment() : start(), end() { } SelectionSegment(SelectionPosition a, SelectionPosition b) { if (a < b) { @@ -86,7 +86,7 @@ struct SelectionRange { SelectionPosition caret; SelectionPosition anchor; - SelectionRange() { + SelectionRange() : caret(), anchor() { } SelectionRange(SelectionPosition single) : caret(single), anchor(single) { } |