summaryrefslogtreecommitdiffstats
path: root/src/Daemon
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-26 15:15:34 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-26 15:15:34 +0100
commit9279f0740a07192eac61f9e51a5e6d078bc4e7b5 (patch)
treeb71613471329e5d93f9065d077b99704f46db4b4 /src/Daemon
parent0486f227e2b1417b109e6a0550533a195f0a5df5 (diff)
downloadabrt-9279f0740a07192eac61f9e51a5e6d078bc4e7b5.tar.gz
abrt-9279f0740a07192eac61f9e51a5e6d078bc4e7b5.tar.xz
abrt-9279f0740a07192eac61f9e51a5e6d078bc4e7b5.zip
trivial simplification
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon')
-rw-r--r--src/Daemon/CommLayerServerDBus.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Daemon/CommLayerServerDBus.cpp b/src/Daemon/CommLayerServerDBus.cpp
index 36bda965..47b66826 100644
--- a/src/Daemon/CommLayerServerDBus.cpp
+++ b/src/Daemon/CommLayerServerDBus.cpp
@@ -233,10 +233,8 @@ static int handle_Report(DBusMessage* call, DBusMessage* reply)
return -1;
}
- map_crash_data_t::const_iterator it_comment = argin1.find(FILENAME_COMMENT);
- const char* comment = (it_comment != argin1.end()) ? it_comment->second[CD_CONTENT].c_str() : "";
- map_crash_data_t::const_iterator it_reproduce = argin1.find(FILENAME_REPRODUCE);
- const char* reproduce = (it_reproduce != argin1.end()) ? it_reproduce->second[CD_CONTENT].c_str() : "";
+ const char* comment = get_crash_data_item_content_or_NULL(argin1, FILENAME_COMMENT) ? : "";
+ const char* reproduce = get_crash_data_item_content_or_NULL(argin1, FILENAME_REPRODUCE) ? : "";
const char* errmsg = NULL;
if (strlen(comment) > LIMIT_MESSAGE)
{