diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-02 15:12:00 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-04-02 17:22:21 +0200 |
commit | 86d298f87f00fe70d31a65b7e98f9b17fa80cb6b (patch) | |
tree | 0b7a389105ead641d092e56ff6fb1d49180f6265 /desktop | |
parent | 711ec7b6c71410b850cdf6d1411d054ca34ec5a0 (diff) |
Simplify some static variable initializations
Change-Id: I6cdd44aa66b9597ccc51fc3fd69b57485ccb3230
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113515
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/crashreport.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx index ff9c80c51996..84ceabb619bd 100644 --- a/desktop/source/app/crashreport.cxx +++ b/desktop/source/app/crashreport.cxx @@ -200,15 +200,7 @@ void CrashReporter::updateMinidumpLocation() bool CrashReporter::crashReportInfoExists() { - static bool first = true; - static bool InfoExist = false; - - if (first) - { - first = false; - InfoExist = crashreport::readConfig(CrashReporter::getIniFileName(), nullptr); - } - + static const bool InfoExist = crashreport::readConfig(CrashReporter::getIniFileName(), nullptr); return InfoExist; } |