summaryrefslogtreecommitdiffstats
path: root/lib/Plugins/FileTransfer.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/FileTransfer.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/FileTransfer.cpp')
-rw-r--r--lib/Plugins/FileTransfer.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp
index 2220e940..72b3b16e 100644
--- a/lib/Plugins/FileTransfer.cpp
+++ b/lib/Plugins/FileTransfer.cpp
@@ -405,16 +405,14 @@ void CFileTransfer::SetSettings(const map_plugin_settings_t& pSettings)
}
}
-map_plugin_settings_t CFileTransfer::GetSettings()
+const map_plugin_settings_t& CFileTransfer::GetSettings()
{
- map_plugin_settings_t ret;
+ m_pSettings["URL"] = m_sURL;
+ m_pSettings["RetryCount"] = to_string(m_nRetryCount);
+ m_pSettings["RetryDelay"] = to_string(m_nRetryDelay);
+ m_pSettings["ArchiveType"] = m_sArchiveType;
- ret["URL"] = m_sURL;
- ret["RetryCount"] = to_string(m_nRetryCount);
- ret["RetryDelay"] = to_string(m_nRetryDelay);
- ret["ArchiveType"] = m_sArchiveType;
-
- return ret;
+ return m_pSettings;
}
PLUGIN_INFO(ACTION,