refactor: switch strings to string references

This commit is contained in:
k0t9i
2023-01-23 23:58:45 +04:00
parent 9592833ddf
commit e127d94902
9 changed files with 14 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ public:
}
}
void Subscribe(std::string eventName, Delegate handler)
void Subscribe(const std::string& eventName, const Delegate handler)
{
m_Handlers[eventName].push_back(handler);
}