summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/Bugzilla.cpp
diff options
context:
space:
mode:
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);