mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
fix: pass reference instead copy of argument in util/edge
This commit is contained in:
parent
9d941aacb9
commit
b799683d60
@ -62,7 +62,7 @@ EdgeTriggeredEvents::~EdgeTriggeredEvents()
|
||||
}
|
||||
}
|
||||
|
||||
bool EdgeTriggeredEvents::RegisterEntity(int entity, std::string entity_name) const
|
||||
bool EdgeTriggeredEvents::RegisterEntity(int entity, const std::string& entity_name) const
|
||||
{
|
||||
assert(m_valid);
|
||||
|
||||
@ -97,7 +97,7 @@ bool EdgeTriggeredEvents::RegisterEntity(int entity, std::string entity_name) co
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EdgeTriggeredEvents::UnregisterEntity(int entity, std::string entity_name) const
|
||||
bool EdgeTriggeredEvents::UnregisterEntity(int entity, const std::string& entity_name) const
|
||||
{
|
||||
assert(m_valid);
|
||||
|
||||
|
@ -44,8 +44,8 @@ private:
|
||||
bool UnregisterPipe(int wakeup_pipe);
|
||||
|
||||
private:
|
||||
bool RegisterEntity(int entity, std::string entity_name) const;
|
||||
bool UnregisterEntity(int entity, std::string entity_name) const;
|
||||
bool RegisterEntity(int entity, const std::string& entity_name) const;
|
||||
bool UnregisterEntity(int entity, const std::string& entity_name) const;
|
||||
|
||||
private:
|
||||
/* Flag set if pipe has been registered with instance */
|
||||
|
Loading…
Reference in New Issue
Block a user