diff --git a/plugins/windows-notification/api/src/ginvoke.cpp b/plugins/windows-notification/api/src/ginvoke.cpp index 9641ce1f..646467cc 100644 --- a/plugins/windows-notification/api/src/ginvoke.cpp +++ b/plugins/windows-notification/api/src/ginvoke.cpp @@ -24,15 +24,15 @@ namespace glib::impl throw 42; std::string msg{ptr}; g_free(const_cast(ptr)); // WTF? Deletion is not modification! - return {{ e.code(), {std::move(msg)} }}; + return {{ e.code(), std::move(msg) }}; } else - return {{ e.code(), {""} }}; + return {{ e.code(), "" }}; } catch (...) { g_free(const_cast(ptr)); - return {{ e.code(), {""} }}; + return {{ e.code(), "" }}; } } catch (...) diff --git a/plugins/windows-notification/api/src/win32.cpp b/plugins/windows-notification/api/src/win32.cpp index a5fcf0ef..de9e82ee 100644 --- a/plugins/windows-notification/api/src/win32.cpp +++ b/plugins/windows-notification/api/src/win32.cpp @@ -79,7 +79,7 @@ static bool ImplSetProcessAumid(const std::string_view aumid) { return false; } - return SUCCEEDED(SetCurrentProcessExplicitAppUserModelID(waumid.c_str())); + return SUCCEEDED(::SetCurrentProcessExplicitAppUserModelID(waumid.c_str())); } extern "C"