summaryrefslogtreecommitdiffstats
path: root/control/zone.hpp
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2018-10-30 19:11:01 -0700
committerWilliam A. Kennington III <wak@google.com>2018-11-05 11:44:15 -0800
commitc0c5f07f38820184cde4ce5bf55ddaee94fc4199 (patch)
tree79b5cbd8a5e6f803fa317bac985b9fd07176f071 /control/zone.hpp
parent94fe1a0c83ba2d0dadc549b1d8afedf6478d2dcf (diff)
downloadphosphor-fan-presence-c0c5f07f38820184cde4ce5bf55ddaee94fc4199.tar.gz
phosphor-fan-presence-c0c5f07f38820184cde4ce5bf55ddaee94fc4199.zip
control/zone: Reference instead of copying timer data
Tested: Built and ran through unit tests. Change-Id: I9a98d9a3eaee47885b18b642ffd01a38a864dd02 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'control/zone.hpp')
-rw-r--r--control/zone.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/control/zone.hpp b/control/zone.hpp
index 4f4dfb6..002feb4 100644
--- a/control/zone.hpp
+++ b/control/zone.hpp
@@ -395,7 +395,8 @@ class Zone
* @param[in] eventGroup - Group to process actions on
* @param[in] eventActions - List of event actions to run
*/
- void timerExpired(Group eventGroup, std::vector<Action> eventActions);
+ void timerExpired(const Group& eventGroup,
+ const std::vector<Action>& eventActions);
/**
* @brief Get the service for a given path and interface from cached
OpenPOWER on IntegriCloud