diff options
author | Karel Klic <kklic@redhat.com> | 2009-11-11 22:30:27 +0100 |
---|---|---|
committer | Karel Klic <kklic@redhat.com> | 2009-11-11 22:30:27 +0100 |
commit | 07a12979cbf321c03c615f921aec601492e8d196 (patch) | |
tree | a0eba8c5b0cf06be829c378ca8704470e37a036b /lib/Plugins/SQLite3.cpp | |
parent | 4bb5f0163c1cf3c65745ea06f1b42545ecaa35d7 (diff) | |
parent | 640af192338643b3c9e6fbe0304726e951239c2b (diff) | |
download | abrt-07a12979cbf321c03c615f921aec601492e8d196.tar.gz abrt-07a12979cbf321c03c615f921aec601492e8d196.tar.xz abrt-07a12979cbf321c03c615f921aec601492e8d196.zip |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/SQLite3.cpp')
-rw-r--r-- | lib/Plugins/SQLite3.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/lib/Plugins/SQLite3.cpp b/lib/Plugins/SQLite3.cpp index dc035d3..3aad054 100644 --- a/lib/Plugins/SQLite3.cpp +++ b/lib/Plugins/SQLite3.cpp @@ -325,7 +325,7 @@ void CSQLite3::Delete(const std::string& pUUID, const std::string& pUID) void CSQLite3::SetReported(const std::string& pUUID, const std::string& pUID, const std::string& pMessage) { - if(pUID == "0") + if (pUID == "0") { Exec("UPDATE "ABRT_TABLE" " "SET "DATABASE_COLUMN_REPORTED" = 1 " @@ -398,20 +398,24 @@ database_row_t CSQLite3::GetUUIDData(const std::string& pUUID, const std::string void CSQLite3::SetSettings(const map_plugin_settings_t& pSettings) { - if (pSettings.find("DBPath") != pSettings.end()) + m_pSettings = pSettings; + + map_plugin_settings_t::const_iterator end = pSettings.end(); + map_plugin_settings_t::const_iterator it; + it = pSettings.find("DBPath"); + if (it != end) { - m_sDBPath = pSettings.find("DBPath")->second; + m_sDBPath = it->second; } } -map_plugin_settings_t CSQLite3::GetSettings() -{ - map_plugin_settings_t ret; - - ret["DBPath"] = m_sDBPath; - - return ret; -} +//ok to delete? +//const map_plugin_settings_t& CSQLite3::GetSettings() +//{ +// m_pSettings["DBPath"] = m_sDBPath; +// +// return m_pSettings; +//} PLUGIN_INFO(DATABASE, CSQLite3, |