mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Move some functions into Utils::OS namespace
Also remove `Utils::Misc::getUserIDString()` since there are no use of it.
This commit is contained in:
parent
f20f009b78
commit
794cce38f3
9 changed files with 277 additions and 288 deletions
|
@ -42,6 +42,10 @@
|
|||
#include "base/utils/gzip.h"
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
#include "base/utils/os.h"
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
|
||||
const int MAX_REDIRECTIONS = 20; // the common value for web browsers
|
||||
|
||||
namespace
|
||||
|
@ -151,7 +155,7 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
|||
m_result.filePath = result.value();
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
|
@ -167,7 +171,7 @@ void Net::DownloadHandlerImpl::processFinishedDownload()
|
|||
m_result.filePath = destinationPath;
|
||||
|
||||
#if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
|
||||
Utils::Misc::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
Utils::OS::applyMarkOfTheWeb(m_result.filePath, m_result.url);
|
||||
#endif // Q_OS_MACOS || Q_OS_WIN
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue