diff options
author | saturneric <[email protected]> | 2023-10-28 18:46:15 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-10-28 18:46:15 +0000 |
commit | fd46d4667611c0db9cea3f06205727399b6fb5fd (patch) | |
tree | 8755059620d00d1690673d963cd0d913df92ae1c /src/ui/main_window/MainWindow.cpp | |
parent | feat: introduce clang-tidy config and modify clang-format config (diff) | |
download | GpgFrontend-fd46d4667611c0db9cea3f06205727399b6fb5fd.tar.gz GpgFrontend-fd46d4667611c0db9cea3f06205727399b6fb5fd.zip |
refactor: start to tidy up code using clang-tidy
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/MainWindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp index 46d72361..1ea706ef 100644 --- a/src/ui/main_window/MainWindow.cpp +++ b/src/ui/main_window/MainWindow.cpp @@ -123,8 +123,7 @@ void MainWindow::Init() noexcept { if (GlobalSettingStation::GetInstance().LookupSettings( "general.clear_gpg_password_cache", false)) { - if (GpgFrontend::GpgAdvancedOperator::GetInstance() - .ClearGpgPasswordCache()) { + if (GpgFrontend::GpgAdvancedOperator::ClearGpgPasswordCache()) { SPDLOG_DEBUG("clear gpg password cache done"); } else { SPDLOG_ERROR("clear gpg password cache error"); |