aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
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
commit3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920 (patch)
tree0eac4ed28358e0496be6a35f77891b308849b477 /gtk/PlatGTK.cxx
parent7c020de8903c45bcc32795e28cc13a32285513f3 (diff)
downloadscintilla-mirror-3d0a66fc8c15a74ae33a5d92b68c0b9adcd02920.tar.gz
Make single argument constructors explicit to avoid unexpected conversions.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index f3a75466e..da9171470 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -253,7 +253,7 @@ class FontCached : Font {
int usage;
LOGFONT lf;
int hash;
- FontCached(const FontParameters &fp);
+ explicit FontCached(const FontParameters &fp);
~FontCached() {}
bool SameAs(const FontParameters &fp);
virtual void Release();
@@ -1963,7 +1963,7 @@ class DynamicLibraryImpl : public DynamicLibrary {
protected:
GModule* m;
public:
- DynamicLibraryImpl(const char *modulePath) {
+ explicit DynamicLibraryImpl(const char *modulePath) {
m = g_module_open(modulePath, G_MODULE_BIND_LAZY);
}