diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-25 12:57:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-25 12:57:46 +0200 |
commit | 5bf3512df0529960ed4980251825b49a12eff894 (patch) | |
tree | de20619cee10aa47781f43a1be32e56af73cf99a /lib | |
parent | 47df431ad534b9319d95ef4dc79c2671baf0ee1b (diff) | |
download | abrt-5bf3512df0529960ed4980251825b49a12eff894.tar.gz abrt-5bf3512df0529960ed4980251825b49a12eff894.tar.xz abrt-5bf3512df0529960ed4980251825b49a12eff894.zip |
pass map_crash_report_t by const reference, not by value
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CommLayer/DBusClientProxy.cpp | 2 | ||||
-rw-r--r-- | lib/CommLayer/DBusClientProxy.h | 2 | ||||
-rw-r--r-- | lib/CommLayer/Observer.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/CommLayer/DBusClientProxy.cpp b/lib/CommLayer/DBusClientProxy.cpp index 59f9f5d5..2cc00a5a 100644 --- a/lib/CommLayer/DBusClientProxy.cpp +++ b/lib/CommLayer/DBusClientProxy.cpp @@ -180,7 +180,7 @@ map_crash_report_t CDBusClient_proxy::CreateReport(const std::string& pUUID) return GetJobResult(m_iPendingJobID); }; -void CDBusClient_proxy::Report(map_crash_report_t pReport) +void CDBusClient_proxy::Report(const map_crash_report_t& pReport) { DBus::CallMessage call; diff --git a/lib/CommLayer/DBusClientProxy.h b/lib/CommLayer/DBusClientProxy.h index 5b5c1fde..22dfcf16 100644 --- a/lib/CommLayer/DBusClientProxy.h +++ b/lib/CommLayer/DBusClientProxy.h @@ -90,7 +90,7 @@ public: vector_crash_infos_t GetCrashInfos(); bool DeleteDebugDump(const std::string& pUUID); map_crash_report_t CreateReport(const std::string& pUUID); - void Report(map_crash_report_t pReport); + void Report(const map_crash_report_t& pReport); map_crash_report_t GetJobResult(uint64_t pJobID); public: diff --git a/lib/CommLayer/Observer.h b/lib/CommLayer/Observer.h index 02b51ce2..5df05247 100644 --- a/lib/CommLayer/Observer.h +++ b/lib/CommLayer/Observer.h @@ -22,7 +22,7 @@ class CObserver { std::cout << "DEFAULT OBSERVER"; return 0; } - virtual report_status_t Report(map_crash_report_t pReport, const std::string &pSender) = 0; + virtual report_status_t Report(const map_crash_report_t& pReport, const std::string &pSender) = 0; virtual bool DeleteDebugDump(const std::string& pUUID, const std::string& pSender) = 0; virtual map_crash_report_t GetJobResult(uint64_t pJobID, const std::string &pSender) = 0; virtual vector_map_string_string_t GetPluginsInfo() = 0; |