summaryrefslogtreecommitdiffstats
path: root/src/CLI/CLI.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-20 20:26:28 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-20 20:26:28 +0100
commit1a3447c52fe47cca5d72d0a15cbbca9f6d18eb50 (patch)
treef571e901eda9669d4d02ed3ad681ff1a14dd2305 /src/CLI/CLI.cpp
parentbbb210c836aaa6487e643176548b8b3feb11c347 (diff)
downloadabrt-1a3447c52fe47cca5d72d0a15cbbca9f6d18eb50.tar.gz
abrt-1a3447c52fe47cca5d72d0a15cbbca9f6d18eb50.tar.xz
abrt-1a3447c52fe47cca5d72d0a15cbbca9f6d18eb50.zip
use get_crash_data_item_content() accessor more widely
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/CLI/CLI.cpp')
-rw-r--r--src/CLI/CLI.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/CLI/CLI.cpp b/src/CLI/CLI.cpp
index 2f3b4048..5b96d7cb 100644
--- a/src/CLI/CLI.cpp
+++ b/src/CLI/CLI.cpp
@@ -53,9 +53,9 @@ static void print_crash_infos(vector_map_crash_data_t& pCrashInfos, int pMode)
for (ii = 0; ii < pCrashInfos.size(); ii++)
{
map_crash_data_t& info = pCrashInfos[ii];
- if (pMode == OPT_GET_LIST_FULL || info[CD_REPORTED][CD_CONTENT] != "1")
+ if (pMode == OPT_GET_LIST_FULL || get_crash_data_item_content(info, CD_REPORTED) != "1")
{
- const char *timestr = info[CD_TIME][CD_CONTENT].c_str();
+ const char *timestr = get_crash_data_item_content(info, CD_TIME).c_str();
long time = strtol(timestr, NULL, 10);
if (time == 0)
error_msg_and_die("Error while converting time string.");
@@ -72,13 +72,13 @@ static void print_crash_infos(vector_map_crash_data_t& pCrashInfos, int pMode)
"\tExecutable : %s\n"
"\tCrash Time : %s\n"
"\tCrash Count: %s\n"),
- ii,
- info[CD_UID][CD_CONTENT].c_str(),
- info[CD_UUID][CD_CONTENT].c_str(),
- info[CD_PACKAGE][CD_CONTENT].c_str(),
- info[CD_EXECUTABLE][CD_CONTENT].c_str(),
- timeloc,
- info[CD_COUNT][CD_CONTENT].c_str()
+ ii,
+ get_crash_data_item_content(info, CD_UID).c_str(),
+ get_crash_data_item_content(info, CD_UUID).c_str(),
+ get_crash_data_item_content(info, CD_PACKAGE).c_str(),
+ get_crash_data_item_content(info, CD_EXECUTABLE).c_str(),
+ timeloc,
+ get_crash_data_item_content(info, CD_COUNT).c_str()
);
}
}