aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/SparseState.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-12-15 12:49:06 +1100
committerNeil <nyamatongwe@gmail.com>2013-12-15 12:49:06 +1100
commitb4c46f78da230ff3077bc2b96ac66f5ac017c7a2 (patch)
tree3a06d1dc7b2deb5e25d5e148666f086fb0864ff4 /lexlib/SparseState.h
parent982a9be5d39fb042e1deb86af5930cb54729f83f (diff)
downloadscintilla-mirror-b4c46f78da230ff3077bc2b96ac66f5ac017c7a2.tar.gz
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'lexlib/SparseState.h')
-rw-r--r--lexlib/SparseState.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlib/SparseState.h b/lexlib/SparseState.h
index 08ff104d3..e767d6710 100644
--- a/lexlib/SparseState.h
+++ b/lexlib/SparseState.h
@@ -38,7 +38,7 @@ class SparseState {
}
public:
- SparseState(int positionFirst_=-1) {
+ explicit SparseState(int positionFirst_=-1) {
positionFirst = positionFirst_;
}
void Set(int position, T value) {