diff options
author | nyamatongwe <devnull@localhost> | 2004-08-12 22:49:47 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2004-08-12 22:49:47 +0000 |
commit | 2282e74de3fdfc6e2a93bf68bc0cff36452ec724 (patch) | |
tree | dfcfbf053435f5a32a4252db2736278daeb53084 /include/Platform.h | |
parent | 1f489514895d4b4ad9e0ec850f8ed1a4cc30aa1f (diff) | |
download | scintilla-mirror-2282e74de3fdfc6e2a93bf68bc0cff36452ec724.tar.gz |
Constructor marked explicit stops automatic conversion of int to
Point which caused bug in handling hotspots.
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h index 99daf98ba..79ce010ae 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -64,7 +64,7 @@ public: int x; int y; - Point(int x_=0, int y_=0) : x(x_), y(y_) { + explicit Point(int x_=0, int y_=0) : x(x_), y(y_) { } // Other automatically defined methods (assignment, copy constructor, destructor) are fine |