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);
}

View File

@@ -18,7 +18,7 @@ public:
return true;
}
const void Send(std::string data) override
const void Send(const std::string& data) override
{
OutputDebugStringA(data.c_str());
}

View File

@@ -37,7 +37,7 @@ public:
return true;
}
const void Send(std::string data) override
const void Send(const std::string& data) override
{
if (!m_Pipe.IsConnected())
{