aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Platform.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-08-12 22:49:47 +0000
committernyamatongwe <devnull@localhost>2004-08-12 22:49:47 +0000
commit2282e74de3fdfc6e2a93bf68bc0cff36452ec724 (patch)
treedfcfbf053435f5a32a4252db2736278daeb53084 /include/Platform.h
parent1f489514895d4b4ad9e0ec850f8ed1a4cc30aa1f (diff)
downloadscintilla-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.h2
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