From da424fb73bb9ba447547bde680b5bd2cce11ca26 Mon Sep 17 00:00:00 2001 From: mjk Date: Sat, 20 Mar 2021 00:00:41 +0000 Subject: [PATCH] fiddle with punctuation --- plugins/windows-notification/api/src/ginvoke.cpp | 6 +++--- plugins/windows-notification/api/src/win32.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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"