aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-04-20 11:22:43 +1000
committerNeil <nyamatongwe@gmail.com>2018-04-20 11:22:43 +1000
commita95e8fdc0958585f10e6142058ad8273269ec904 (patch)
treec8d73858e72f1f953b4a7142e2a371149cbf9c11
parent1d60604d5e2d82a64d8af4ec458c0c7e61c15097 (diff)
downloadscintilla-mirror-a95e8fdc0958585f10e6142058ad8273269ec904.tar.gz
Avoid MSVC analyze warnings about statics by making Point constructor constexpr.
-rw-r--r--include/Platform.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Platform.h b/include/Platform.h
index 773ae2439..de661dba5 100644
--- a/include/Platform.h
+++ b/include/Platform.h
@@ -99,7 +99,7 @@ public:
XYPOSITION x;
XYPOSITION y;
- explicit Point(XYPOSITION x_=0, XYPOSITION y_=0) : x(x_), y(y_) {
+ constexpr explicit Point(XYPOSITION x_=0, XYPOSITION y_=0) : x(x_), y(y_) {
}
static Point FromInts(int x_, int y_) {