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
commit579bc31cfe08a9202dc0aaaff496bef6b169b459 (patch)
tree80ea8e3ed904fada0df8bc25c7cdbfcb1f2b65f0
parent91bdbe3b40b76e9ea822ee750b4ab543f4bb105d (diff)
downloadscintilla-mirror-579bc31cfe08a9202dc0aaaff496bef6b169b459.tar.gz
Backport: Avoid MSVC analyze warnings about statics by making Point constructor constexpr.
Backport of changeset 6714:bdd810136072.
-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_) {