mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Mark free functions static where applicable
This commit is contained in:
@@ -88,7 +88,7 @@ Connection::~Connection()
|
||||
_client.Disconnect();
|
||||
}
|
||||
|
||||
std::string GetUri(std::string addr, int port)
|
||||
static std::string GetUri(std::string addr, int port)
|
||||
{
|
||||
return "ws://" + addr + ":" + std::to_string(port);
|
||||
}
|
||||
@@ -161,12 +161,12 @@ std::string GetWeakConnectionName(std::weak_ptr<Connection> connection)
|
||||
return con->Name();
|
||||
}
|
||||
|
||||
bool ConnectionNameAvailable(const QString &name)
|
||||
static bool ConnectionNameAvailable(const QString &name)
|
||||
{
|
||||
return !GetConnectionByName(name);
|
||||
}
|
||||
|
||||
bool ConnectionNameAvailable(const std::string &name)
|
||||
static bool ConnectionNameAvailable(const std::string &name)
|
||||
{
|
||||
return ConnectionNameAvailable(QString::fromStdString(name));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user