diff options
author | George Hazan <george.hazan@gmail.com> | 2015-09-07 08:37:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-09-07 08:37:05 +0000 |
commit | b3b896c472bd802ace10eca85b8d6a7e55a36908 (patch) | |
tree | 591599fc1fcede341b53debacee329cdbf1e228c /plugins/HistoryStats/src/utils.h | |
parent | 1e6778f300138c934d22c19729f4e405cd7ad4b2 (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15290 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/utils.h')
-rw-r--r-- | plugins/HistoryStats/src/utils.h | 12 |
1 files changed, 11 insertions, 1 deletions
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);
|