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. --- lexlib/SparseState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/SparseState.h') 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) { -- cgit v1.2.3