summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Bugzilla.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 21:02:05 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-19 21:02:05 +0100
commit9edadbfa15ed05a3e48158aad89e438a6f9a9e50 (patch)
tree225a0f3420b84a6097f11dd6351e83d14e10053b /lib/Plugins/Bugzilla.cpp
parentc781b46915c73f8f7b12efddd0357930eb1df8bb (diff)
downloadabrt-9edadbfa15ed05a3e48158aad89e438a6f9a9e50.tar.gz
abrt-9edadbfa15ed05a3e48158aad89e438a6f9a9e50.tar.xz
abrt-9edadbfa15ed05a3e48158aad89e438a6f9a9e50.zip
use get_crash_data_item_content() more widely. -4k.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
-rw-r--r--lib/Plugins/Bugzilla.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index 5fdaa750..8a5a7978 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -283,11 +283,11 @@ uint32_t ctx::new_bug(const map_crash_data_t& pCrashData)
xmlrpc_env env;
xmlrpc_env_init(&env);
- std::string package = pCrashData.find(FILENAME_PACKAGE)->second[CD_CONTENT];
- std::string component = pCrashData.find(FILENAME_COMPONENT)->second[CD_CONTENT];
- std::string release = pCrashData.find(FILENAME_RELEASE)->second[CD_CONTENT];
- std::string arch = pCrashData.find(FILENAME_ARCHITECTURE)->second[CD_CONTENT];
- std::string uuid = pCrashData.find(CD_UUID)->second[CD_CONTENT];
+ const std::string& package = get_crash_data_item_content(pCrashData, FILENAME_PACKAGE);
+ const std::string& component = get_crash_data_item_content(pCrashData, FILENAME_COMPONENT);
+ const std::string& release = get_crash_data_item_content(pCrashData, FILENAME_RELEASE);
+ const std::string& arch = get_crash_data_item_content(pCrashData, FILENAME_ARCHITECTURE);
+ const std::string& uuid = get_crash_data_item_content(pCrashData, CD_UUID);
std::string summary = "[abrt] crash in " + package;
std::string status_whiteboard = "abrt_hash:" + uuid;
@@ -433,8 +433,8 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData,
NoSSLVerify = m_bNoSSLVerify;
}
- std::string component = pCrashData.find(FILENAME_COMPONENT)->second[CD_CONTENT];
- std::string uuid = pCrashData.find(CD_UUID)->second[CD_CONTENT];
+ const std::string& component = get_crash_data_item_content(pCrashData, FILENAME_COMPONENT);
+ const std::string& uuid = get_crash_data_item_content(pCrashData, CD_UUID);
try
{
ctx bz_server(BugzillaXMLRPC.c_str(), NoSSLVerify);