2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Avoid unneeded std::string casts in exception handling

This commit is contained in:
Ilya Fedin
2023-09-19 17:10:53 +04:00
committed by John Preston
parent a54bc449e4
commit e0b4d1edce
4 changed files with 10 additions and 17 deletions

View File

@@ -174,7 +174,7 @@ gi::ref_ptr<Application> MakeApplication() {
const auto result = gi::make_ref<Application>();
if (const auto registered = result->register_(); !registered) {
LOG(("App Error: Failed to register: %1").arg(
QString::fromStdString(registered.error().message_())));
registered.error().message_().c_str()));
return nullptr;
}
return result;