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 | b4c46f78da230ff3077bc2b96ac66f5ac017c7a2 (patch) | |
tree | 3a06d1dc7b2deb5e25d5e148666f086fb0864ff4 /src/PositionCache.h | |
parent | 982a9be5d39fb042e1deb86af5930cb54729f83f (diff) | |
download | scintilla-mirror-b4c46f78da230ff3077bc2b96ac66f5ac017c7a2.tar.gz |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 6d14cf0a3..2b4223769 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -53,7 +53,7 @@ public: int lines; XYPOSITION wrapIndent; // In pixels - LineLayout(int maxLineLength_); + explicit LineLayout(int maxLineLength_); virtual ~LineLayout(); void Resize(int maxLineLength_); void Free(); @@ -116,7 +116,7 @@ public: class Representation { public: std::string stringRep; - Representation(const char *value="") : stringRep(value) { + explicit Representation(const char *value="") : stringRep(value) { } }; |