aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-08-12 22:49:47 +0000
committernyamatongwe <unknown>2004-08-12 22:49:47 +0000
commit1e35215f948184f47e4abcc36d7245fc8f413bc0 (patch)
treedfcfbf053435f5a32a4252db2736278daeb53084
parent1c8696856d131760a5010f285ae8fa62ca8a8d18 (diff)
downloadscintilla-mirror-1e35215f948184f47e4abcc36d7245fc8f413bc0.tar.gz
Constructor marked explicit stops automatic conversion of int to
Point which caused bug in handling hotspots.
-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