fix: Various clang / clang-tidy warnings (#764)

This commit is contained in:
Nik
2022-10-02 17:30:26 +02:00
committed by GitHub
parent b365e16cc9
commit 9c484e7b57
24 changed files with 72 additions and 64 deletions

View File

@@ -80,7 +80,7 @@ namespace hex {
#else
std::raise(signalNumber);
#endif
};
}
Window::Window() {
{
@@ -199,9 +199,16 @@ namespace hex {
}
}
this->frameBegin();
this->frame();
try {
this->frame();
} catch (const std::exception &e) {
log::error("Exception thrown in main loop: {}", e.what());
} catch (...) {
log::error("Unknown exception thrown in main loop!");
}
this->frameEnd();
const auto targetFps = ImHexApi::System::getTargetFPS();