summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/KerneloopsReporter.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-10 14:25:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-10 14:25:40 +0100
commitc0ee9dabb895e9079a6367a823187f9e687c3e4a (patch)
tree0c06abb4063c099918e641be9106fb16ee2665a6 /lib/Plugins/KerneloopsReporter.cpp
parent8ddd4fb2e18e4ae996907a930aaedb5ceea1b78b (diff)
downloadabrt-c0ee9dabb895e9079a6367a823187f9e687c3e4a.tar.gz
abrt-c0ee9dabb895e9079a6367a823187f9e687c3e4a.tar.xz
abrt-c0ee9dabb895e9079a6367a823187f9e687c3e4a.zip
remove getSettings from most plugins (inherited one is ok)
Also move parse_release() to abrtlib, it's shared among Bugzilla and Catcut. Tested Bugzilla and Catcut, both work. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/KerneloopsReporter.cpp')
-rw-r--r--lib/Plugins/KerneloopsReporter.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/Plugins/KerneloopsReporter.cpp b/lib/Plugins/KerneloopsReporter.cpp
index cfb4e05..f7a6cbb 100644
--- a/lib/Plugins/KerneloopsReporter.cpp
+++ b/lib/Plugins/KerneloopsReporter.cpp
@@ -118,18 +118,23 @@ std::string CKerneloopsReporter::Report(const map_crash_report_t& pCrashReport,
void CKerneloopsReporter::SetSettings(const map_plugin_settings_t& pSettings)
{
- map_plugin_settings_t::const_iterator it = pSettings.find("SubmitURL");
- if (it != pSettings.end()) {
+ m_pSettings = pSettings;
+
+ map_plugin_settings_t::const_iterator end = pSettings.end();
+ map_plugin_settings_t::const_iterator it;
+ it = pSettings.find("SubmitURL");
+ if (it != end) {
m_sSubmitURL = it->second;
}
}
-const map_plugin_settings_t& CKerneloopsReporter::GetSettings()
-{
- m_pSettings["SubmitURL"] = m_sSubmitURL;
-
- return m_pSettings;
-}
+//ok to delete?
+//const map_plugin_settings_t& CKerneloopsReporter::GetSettings()
+//{
+// m_pSettings["SubmitURL"] = m_sSubmitURL;
+//
+// return m_pSettings;
+//}
PLUGIN_INFO(REPORTER,
CKerneloopsReporter,