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 /win32/ScintillaWin.cxx | |
parent | 982a9be5d39fb042e1deb86af5930cb54729f83f (diff) | |
download | scintilla-mirror-b4c46f78da230ff3077bc2b96ac66f5ac017c7a2.tar.gz |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 465d74d85..2a6ac369d 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -212,7 +212,7 @@ class ScintillaWin : bool renderTargetValid; #endif - ScintillaWin(HWND hwnd); + explicit ScintillaWin(HWND hwnd); ScintillaWin(const ScintillaWin &); virtual ~ScintillaWin(); ScintillaWin &operator=(const ScintillaWin &); @@ -1461,7 +1461,7 @@ class CaseFolderDBCS : public CaseFolderTable { std::vector<wchar_t> utf16Folded; UINT cp; public: - CaseFolderDBCS(UINT cp_) : cp(cp_) { + explicit CaseFolderDBCS(UINT cp_) : cp(cp_) { StandardASCII(); } virtual size_t Fold(char *folded, size_t sizeFolded, const char *mixed, size_t lenMixed) { @@ -1634,7 +1634,7 @@ public: void *ptr; GlobalMemory() : hand(0), ptr(0) { } - GlobalMemory(HGLOBAL hand_) : hand(hand_), ptr(0) { + explicit GlobalMemory(HGLOBAL hand_) : hand(hand_), ptr(0) { if (hand) { ptr = ::GlobalLock(hand); } |