mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
refactor(src/common): remove unused imports (#19506)
* refactor(src/common): remove unused imports * fix: build * chore: fix build * chore: size_t -> std::size_t * chore: fix fuckup from previous commit * chore: fix build * chore: fix build * chore: fix build * chore: fix build with std::size_t * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build * chore: fix build
This commit is contained in:
@@ -138,7 +138,7 @@ public:
|
||||
|
||||
// store random suggested secrets
|
||||
static std::unordered_map<uint32, Acore::Crypto::TOTP::Secret> suggestions;
|
||||
auto pair = suggestions.emplace(std::piecewise_construct, std::make_tuple(accountId), std::make_tuple(Acore::Crypto::TOTP::RECOMMENDED_SECRET_LENGTH)); // std::vector 1-argument size_t constructor invokes resize
|
||||
auto pair = suggestions.emplace(std::piecewise_construct, std::make_tuple(accountId), std::make_tuple(Acore::Crypto::TOTP::RECOMMENDED_SECRET_LENGTH)); // std::vector 1-argument std::size_t constructor invokes resize
|
||||
|
||||
if (pair.second) // no suggestion yet, generate random secret
|
||||
Acore::Crypto::GetRandomBytes(pair.first->second);
|
||||
|
||||
@@ -694,7 +694,7 @@ public:
|
||||
if (!p->IsGameMaster())
|
||||
targetList.push_back(p);
|
||||
|
||||
size_t half = targetList.size() / 2;
|
||||
std::size_t half = targetList.size() / 2;
|
||||
// half gets ooze variable
|
||||
while (half < targetList.size())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user