Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -15,8 +15,7 @@ double constexpr kRequestTimeoutInSec = 5.0;
} // namespace
RemoteFile::RemoteFile(std::string url, std::string accessToken /* = {} */,
HttpClient::Headers const & defaultHeaders /* = {} */,
bool allowRedirection /* = true */)
HttpClient::Headers const & defaultHeaders /* = {} */, bool allowRedirection /* = true */)
: m_url(std::move(url))
, m_accessToken(std::move(accessToken))
, m_defaultHeaders(defaultHeaders)
@@ -71,15 +70,13 @@ RemoteFile::Result RemoteFile::Download(std::string const & filePath) const
return {m_url, Status::NetworkError, "Unspecified network error"};
}
void RemoteFile::DownloadAsync(std::string const & filePath,
StartDownloadingHandler && startDownloadingHandler,
void RemoteFile::DownloadAsync(std::string const & filePath, StartDownloadingHandler && startDownloadingHandler,
ResultHandler && resultHandler) const
{
RemoteFile remoteFile = *this;
GetPlatform().RunTask(Platform::Thread::Network,
[filePath, remoteFile = std::move(remoteFile),
startDownloadingHandler = std::move(startDownloadingHandler),
resultHandler = std::move(resultHandler)]
GetPlatform().RunTask(Platform::Thread::Network, [filePath, remoteFile = std::move(remoteFile),
startDownloadingHandler = std::move(startDownloadingHandler),
resultHandler = std::move(resultHandler)]
{
if (startDownloadingHandler)
startDownloadingHandler(filePath);