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/PlatWin.cxx | |
parent | 982a9be5d39fb042e1deb86af5930cb54729f83f (diff) | |
download | scintilla-mirror-b4c46f78da230ff3077bc2b96ac66f5ac017c7a2.tar.gz |
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 89e3f9c97..d2bc4c05f 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -334,7 +334,7 @@ class FontCached : Font { LOGFONTA lf; int technology; int hash; - FontCached(const FontParameters &fp); + explicit FontCached(const FontParameters &fp); ~FontCached() {} bool SameAs(const FontParameters &fp); virtual void Release(); @@ -490,7 +490,7 @@ class VarBuffer { VarBuffer &operator=(const VarBuffer &); public: T *buffer; - VarBuffer(size_t length) : buffer(0) { + explicit VarBuffer(size_t length) : buffer(0) { if (length > lengthStandard) { buffer = new T[length]; } else { @@ -3058,7 +3058,7 @@ class DynamicLibraryImpl : public DynamicLibrary { protected: HMODULE h; public: - DynamicLibraryImpl(const char *modulePath) { + explicit DynamicLibraryImpl(const char *modulePath) { h = ::LoadLibraryA(modulePath); } |