From 9b4f390a0b555bc812b8f25aff60c4889fa89c86 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 24 Apr 2015 15:34:30 +0200 Subject: [PATCH] make compile with more stupid compiler --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 4e14aac..35b9797 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,7 +28,7 @@ void bringToFront(QString pid) auto findWindowForPid = [](ulong pid) { // based on http://stackoverflow.com/a/21767578 pair data = make_pair(pid, (HWND)0); - ::EnumWindows([](HWND handle, LPARAM lParam) -> BOOL { + ::EnumWindows((WNDENUMPROC)static_cast([](HWND handle, LPARAM lParam) -> BOOL { auto isMainWindow = [](HWND handle) { return ::GetWindow(handle, GW_OWNER) == (HWND)0 && IsWindowVisible(handle); @@ -42,7 +42,7 @@ void bringToFront(QString pid) } data.second = handle; return FALSE; - }, (LPARAM)&data); + }), (LPARAM)&data); return data.second; };