From 579bc31cfe08a9202dc0aaaff496bef6b169b459 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 20 Apr 2018 11:22:43 +1000 Subject: Backport: Avoid MSVC analyze warnings about statics by making Point constructor constexpr. Backport of changeset 6714:bdd810136072. --- include/Platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Platform.h') 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_) { -- cgit v1.2.3