summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/CCpp.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 18:26:42 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 18:26:42 +0100
commit57039b590e4411606795893c90f9871e0412ca31 (patch)
treeb1242a01cfcb822a7f6fd978ed21bf7410c0e81a /lib/Plugins/CCpp.cpp
parent152e24176d55e1f9320de05bdd80de74e6973d95 (diff)
downloadabrt-57039b590e4411606795893c90f9871e0412ca31.tar.gz
abrt-57039b590e4411606795893c90f9871e0412ca31.tar.xz
abrt-57039b590e4411606795893c90f9871e0412ca31.zip
give Plugin class a map_plugin_settings_t member
This simplifies and unifies get/set settings ops Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
-rw-r--r--lib/Plugins/CCpp.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index b6a5db85..4b73938c 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -975,16 +975,14 @@ void CAnalyzerCCpp::SetSettings(const map_plugin_settings_t& pSettings)
}
}
-map_plugin_settings_t CAnalyzerCCpp::GetSettings()
+const map_plugin_settings_t& CAnalyzerCCpp::GetSettings()
{
- map_plugin_settings_t ret = m_pSettings;
+ m_pSettings["MemoryMap"] = m_bMemoryMap ? "yes" : "no";
+ m_pSettings["DebugInfo"] = m_sDebugInfo;
+ m_pSettings["DebugInfoCacheMB"] = to_string(m_nDebugInfoCacheMB);
+ m_pSettings["InstallDebugInfo"] = m_bInstallDebugInfo ? "yes" : "no";
- ret["MemoryMap"] = m_bMemoryMap ? "yes" : "no";
- ret["DebugInfo"] = m_sDebugInfo;
- ret["DebugInfoCacheMB"] = to_string(m_nDebugInfoCacheMB);
- ret["InstallDebugInfo"] = m_bInstallDebugInfo ? "yes" : "no";
-
- return ret;
+ return m_pSettings;
}
PLUGIN_INFO(ANALYZER,