diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-22 13:34:14 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-22 13:34:14 +0200 |
| commit | 86d228369466b6869b50f22afc49a4e028fa2fc9 (patch) | |
| tree | aa9fc13dc320f5ea9a223220c24c7d9c8c491467 /src/Daemon/MiddleWare.cpp | |
| parent | c10b6db20fa21536ed35c26645bec5b8daf11c3d (diff) | |
| download | abrt-86d228369466b6869b50f22afc49a4e028fa2fc9.tar.gz abrt-86d228369466b6869b50f22afc49a4e028fa2fc9.tar.xz abrt-86d228369466b6869b50f22afc49a4e028fa2fc9.zip | |
optimizations
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/MiddleWare.cpp')
| -rw-r--r-- | src/Daemon/MiddleWare.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp index 9060d79a..01ca58c8 100644 --- a/src/Daemon/MiddleWare.cpp +++ b/src/Daemon/MiddleWare.cpp @@ -311,11 +311,12 @@ static bool CheckReport(const map_crash_report_t& pCrashReport) map_crash_report_t::const_iterator it_release = pCrashReport.find(FILENAME_RELEASE); map_crash_report_t::const_iterator it_executable = pCrashReport.find(FILENAME_EXECUTABLE); - if (it_analyzer == pCrashReport.end() || it_mwuid == pCrashReport.end() || - it_mwuuid == pCrashReport.end() || it_package == pCrashReport.end() || - it_architecture == pCrashReport.end() || it_kernel == pCrashReport.end() || - it_component == pCrashReport.end() || it_release == pCrashReport.end() || - it_executable == pCrashReport.end()) + map_crash_report_t::const_iterator end = pCrashReport.end(); + if (it_analyzer == end || it_mwuid == end || + it_mwuuid == end || it_package == end || + it_architecture == end || it_kernel == end || + it_component == end || it_release == end || + it_executable == end) { return false; } |
