From b3b896c472bd802ace10eca85b8d6a7e55a36908 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 7 Sep 2015 08:37:05 +0000 Subject: warning fix git-svn-id: http://svn.miranda-ng.org/main/trunk@15290 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryStats/src/utils.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'plugins/HistoryStats/src/utils.h') diff --git a/plugins/HistoryStats/src/utils.h b/plugins/HistoryStats/src/utils.h index cbd42f240b..db42e4c106 100644 --- a/plugins/HistoryStats/src/utils.h +++ b/plugins/HistoryStats/src/utils.h @@ -80,7 +80,17 @@ namespace utils // drawing helpers inline POINT point(int x, int y) { POINT p = { x, y }; return p; } - inline RECT rect(int left, int top, int right, int bottom) { RECT r = { left, top, right, bottom }; return r; } + + struct rect + { + RECT r; + inline rect(int left, int top, int right, int bottom) + { + r = { left, top, right, bottom }; + } + + inline operator const RECT*() const { return &r; } + }; // misc functionality void ensureRange(int& value, int min, int max, int fallback); -- cgit v1.2.3