diff options
author | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-30 06:52:29 +0000 |
commit | 5d7b1d5493df8723259eca0613a9ce0af6077289 (patch) | |
tree | 12c0c820e956a1182d21d5897dc85610732767fd /src/main.cpp | |
parent | chore: add project infos in cmake config file (diff) | |
download | GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.tar.gz GpgFrontend-5d7b1d5493df8723259eca0613a9ce0af6077289.zip |
style: improve code style of core
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index ab3b9af6..e1a220b6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -164,7 +164,7 @@ int main(int argc, char* argv[]) { SPDLOG_DEBUG("restart loop refresh, event loop code: {}, restart count: {}", return_from_event_loop_code, restart_count); - } while (return_from_event_loop_code == RESTART_CODE && restart_count < 3); + } while (return_from_event_loop_code == kRestartCode && restart_count < 3); // shutdown the logging system for core GpgFrontend::Module::ShutdownGpgFrontendModules(); @@ -179,7 +179,7 @@ int main(int argc, char* argv[]) { SPDLOG_INFO("GpgFrontend about to exit."); // deep restart mode - if (return_from_event_loop_code == DEEP_RESTART_CODE || + if (return_from_event_loop_code == kRestartCode || return_from_event_loop_code == CRASH_CODE) { // log for debug SPDLOG_DEBUG( |