summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-14 14:22:04 -0700
committerPatrick Venture <venture@google.com>2018-10-14 14:22:04 -0700
commit0b45a3ce6d21e70453ed3d4a7dfcc2bef0865e7f (patch)
treecb2c3a278c314dc996afd51ad64d23676faa4300
parent8e273775ee53d796c9accd256aac7c5dd9562b21 (diff)
downloadphosphor-dbus-monitor-0b45a3ce6d21e70453ed3d4a7dfcc2bef0865e7f.zip
phosphor-dbus-monitor-0b45a3ce6d21e70453ed3d4a7dfcc2bef0865e7f.tar.gz
event: use const reference for string params
[src/event.hpp:95]: (performance) Function parameter 'eventName' should be passed by const reference. [src/event.hpp:95]: (performance) Function parameter 'eventMessage' should be passed by const reference. Change-Id: I128100102c8ddb24bb847c2ed94acb1fa8871eb0 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--src/event.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.hpp b/src/event.hpp
index f9104f8..2116977 100644
--- a/src/event.hpp
+++ b/src/event.hpp
@@ -92,7 +92,7 @@ class Event : public EventBase
* @param[in] eventMessage- Event Message.
* @param[in] index - look up index for the properties.
*/
- Event(std::string eventName, std::string eventMessage,
+ Event(const std::string& eventName, const std::string& eventMessage,
const PropertyIndex& index) :
EventBase(index),
name(eventName), message(eventMessage)
OpenPOWER on IntegriCloud