summaryrefslogtreecommitdiffstats
path: root/src/CLI
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-25 12:57:46 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-25 12:57:46 +0200
commit5bf3512df0529960ed4980251825b49a12eff894 (patch)
treede20619cee10aa47781f43a1be32e56af73cf99a /src/CLI
parent47df431ad534b9319d95ef4dc79c2671baf0ee1b (diff)
pass map_crash_report_t by const reference, not by value
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/CLI')
-rw-r--r--src/CLI/ABRTSocket.cpp2
-rw-r--r--src/CLI/ABRTSocket.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/CLI/ABRTSocket.cpp b/src/CLI/ABRTSocket.cpp
index a699bbd..1f90f63 100644
--- a/src/CLI/ABRTSocket.cpp
+++ b/src/CLI/ABRTSocket.cpp
@@ -117,7 +117,7 @@ map_crash_report_t CABRTSocket::CreateReport(const std::string &pUUID)
return string_to_crash_report(message);
}
-void CABRTSocket::Report(map_crash_report_t pReport)
+void CABRTSocket::Report(const map_crash_report_t& pReport)
{
std::string message = MESSAGE_REPORT + crash_report_to_string(pReport);
Send(message);
diff --git a/src/CLI/ABRTSocket.h b/src/CLI/ABRTSocket.h
index 6e8a777..d476411 100644
--- a/src/CLI/ABRTSocket.h
+++ b/src/CLI/ABRTSocket.h
@@ -22,7 +22,7 @@ class CABRTSocket
vector_crash_infos_t GetCrashInfos();
map_crash_report_t CreateReport(const std::string& pUUID);
- void Report(map_crash_report_t pReport);
+ void Report(const map_crash_report_t& pReport);
void DeleteDebugDump(const std::string& pUUID);
};