fiddle with punctuation

This commit is contained in:
mjk 2021-03-20 00:00:41 +00:00 committed by LAGonauta
parent 39b51b2d4c
commit da424fb73b
2 changed files with 4 additions and 4 deletions

View file

@ -24,15 +24,15 @@ namespace glib::impl
throw 42;
std::string msg{ptr};
g_free(const_cast<char *>(ptr)); // WTF? Deletion is not modification!
return {{ e.code(), {std::move(msg)} }};
return {{ e.code(), std::move(msg) }};
}
else
return {{ e.code(), {"<no error description>"} }};
return {{ e.code(), "<no error description>" }};
}
catch (...)
{
g_free(const_cast<char *>(ptr));
return {{ e.code(), {"<failed to stringify error>"} }};
return {{ e.code(), "<failed to stringify error>" }};
}
}
catch (...)

View file

@ -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"