diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-06 16:20:47 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-07 07:11:58 +0000 |
commit | e61770d28488f98a754a7b33813fbbdf9a1c8293 (patch) | |
tree | 1d42b1e4a3ebdf803d7226d403163f82ff356451 /src/winextras/qwinfunctions_p.h | |
parent | 5e04d2d9d983a4304deafa439cd0b6b0107dc5d1 (diff) |
Fix MinGW compiler warnings
Change internal functions to be inline, fixing:
qwinfunctions_p.h:75:17: warning: 'void QtDwmApiDll::setBooleanWindowAttribute(HWND, DWORD, bool)' defined but not used [-Wunused-function]
static void setBooleanWindowAttribute(HWND hwnd, DWORD attribute, bool value)
qwinfunctions_p.h:72:17: warning: 'bool QtDwmApiDll::booleanWindowAttribute(HWND, DWORD)' defined but not used [-Wunused-function]
static bool booleanWindowAttribute(HWND hwnd, DWORD attribute)
Change-Id: If61d35df92aa449c394f80b7a8ff722a10aa1fe8
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/winextras/qwinfunctions_p.h')
-rw-r--r-- | src/winextras/qwinfunctions_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/winextras/qwinfunctions_p.h b/src/winextras/qwinfunctions_p.h index 3aad7bc..03dff5e 100644 --- a/src/winextras/qwinfunctions_p.h +++ b/src/winextras/qwinfunctions_p.h @@ -69,10 +69,10 @@ namespace QtDwmApiDll template <class T> static T windowAttribute(HWND hwnd, DWORD attribute, T defaultValue); template <class T> static void setWindowAttribute(HWND hwnd, DWORD attribute, T value); - static bool booleanWindowAttribute(HWND hwnd, DWORD attribute) + inline bool booleanWindowAttribute(HWND hwnd, DWORD attribute) { return QtDwmApiDll::windowAttribute<BOOL>(hwnd, attribute, FALSE) != FALSE; } - static void setBooleanWindowAttribute(HWND hwnd, DWORD attribute, bool value) + inline void setBooleanWindowAttribute(HWND hwnd, DWORD attribute, bool value) { setWindowAttribute<BOOL>(hwnd, attribute, BOOL(value ? TRUE : FALSE)); } }; |