fiddle with punctuation
This commit is contained in:
parent
39b51b2d4c
commit
da424fb73b
|
@ -24,15 +24,15 @@ namespace glib::impl
|
||||||
throw 42;
|
throw 42;
|
||||||
std::string msg{ptr};
|
std::string msg{ptr};
|
||||||
g_free(const_cast<char *>(ptr)); // WTF? Deletion is not modification!
|
g_free(const_cast<char *>(ptr)); // WTF? Deletion is not modification!
|
||||||
return {{ e.code(), {std::move(msg)} }};
|
return {{ e.code(), std::move(msg) }};
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
return {{ e.code(), {"<no error description>"} }};
|
return {{ e.code(), "<no error description>" }};
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
g_free(const_cast<char *>(ptr));
|
g_free(const_cast<char *>(ptr));
|
||||||
return {{ e.code(), {"<failed to stringify error>"} }};
|
return {{ e.code(), "<failed to stringify error>" }};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
|
|
|
@ -79,7 +79,7 @@ static bool ImplSetProcessAumid(const std::string_view aumid)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return SUCCEEDED(SetCurrentProcessExplicitAppUserModelID(waumid.c_str()));
|
return SUCCEEDED(::SetCurrentProcessExplicitAppUserModelID(waumid.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
|
|
Loading…
Reference in a new issue