diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-20 11:22:43 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-20 11:22:43 +1000 |
commit | a95e8fdc0958585f10e6142058ad8273269ec904 (patch) | |
tree | c8d73858e72f1f953b4a7142e2a371149cbf9c11 | |
parent | 1d60604d5e2d82a64d8af4ec458c0c7e61c15097 (diff) | |
download | scintilla-mirror-a95e8fdc0958585f10e6142058ad8273269ec904.tar.gz |
Avoid MSVC analyze warnings about statics by making Point constructor constexpr.
-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 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_) { |