[General]: Use {} default ctor (#865)

This commit is contained in:
Edo 2023-03-21 23:00:13 +00:00 committed by GitHub
parent 78dde29067
commit a52337bbac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@ namespace Components
static unsigned __int64 GetKeyHash(const std::string& key);
static uint32_t GetSecurityLevel();
static void IncreaseSecurityLevel(uint32_t level, const std::string& command = "");
static void IncreaseSecurityLevel(uint32_t level, const std::string& command = {});
static uint32_t GetZeroBits(Utils::Cryptography::Token token, const std::string& publicKey);
static void IncrementToken(Utils::Cryptography::Token& token, Utils::Cryptography::Token& computeToken, const std::string& publicKey, uint32_t zeroBits, bool* cancel = nullptr, uint64_t* count = nullptr);

View File

@ -65,8 +65,8 @@ namespace Components
static void SendRaw(Game::netsrc_t type, Address target, const std::string& data);
// Send quake-style command using binary data
static void SendCommand(Address target, const std::string& command, const std::string& data = "");
static void SendCommand(Game::netsrc_t type, Address target, const std::string& command, const std::string& data = "");
static void SendCommand(Address target, const std::string& command, const std::string& data = {});
static void SendCommand(Game::netsrc_t type, Address target, const std::string& command, const std::string& data = {});
static void Broadcast(unsigned short port, const std::string& data);
static void BroadcastRange(unsigned int min, unsigned int max, const std::string& data);