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

@@ -73,7 +73,7 @@
#include "sessionimpl.h"
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
#include "base/utils/misc.h"
#include "base/utils/os.h"
#endif // Q_OS_MACOS || Q_OS_WIN
using namespace BitTorrent;
@@ -2248,7 +2248,7 @@ void TorrentImpl::handleFileCompletedAlert(const lt::file_completed_alert *p)
if (isDownloading())
{
const Path fullpath = actualStorageLocation() / actualPath;
Utils::Misc::applyMarkOfTheWeb(fullpath);
Utils::OS::applyMarkOfTheWeb(fullpath);
}
#endif // Q_OS_MACOS || Q_OS_WIN