Move some functions into Utils::OS namespace

Also remove `Utils::Misc::getUserIDString()` since there are no use of
it.
This commit is contained in:
Chocobo1
2023-10-29 22:16:09 +08:00
parent f20f009b78
commit 794cce38f3
9 changed files with 277 additions and 288 deletions

View File

@@ -44,7 +44,10 @@
#include <QString>
#include "base/global.h"
#include "base/utils/misc.h"
#ifdef Q_OS_WIN
#include "base/utils/os.h"
#endif
namespace
{
@@ -56,7 +59,7 @@ namespace
using result_type = uint32_t;
RandomLayer()
: m_rtlGenRandom {Utils::Misc::loadWinAPI<PRTLGENRANDOM>(u"Advapi32.dll"_s, "SystemFunction036")}
: m_rtlGenRandom {Utils::OS::loadWinAPI<PRTLGENRANDOM>(u"Advapi32.dll"_s, "SystemFunction036")}
{
if (!m_rtlGenRandom)
qFatal("Failed to load RtlGenRandom()");