From 1e35215f948184f47e4abcc36d7245fc8f413bc0 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 12 Aug 2004 22:49:47 +0000 Subject: Constructor marked explicit stops automatic conversion of int to Point which caused bug in handling hotspots. --- include/Platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3