Mark free functions static where applicable

This commit is contained in:
WarmUpTill
2023-04-29 22:56:45 +02:00
committed by WarmUpTill
parent 5967c83b03
commit 443ffb7906
27 changed files with 99 additions and 94 deletions

View File

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