clang-format

This commit is contained in:
yvt 2019-07-20 16:40:59 +09:00
parent 5f0814988a
commit 29ac869491
No known key found for this signature in database
GPG Key ID: 48F2768FA8D07C92

View File

@ -73,7 +73,7 @@ namespace spades {
return {components[0], components[1], components[2], components[3],
versionText.asString()};
}
}
} // namespace
class PackageUpdateManager::UpdateFeed {
public:
@ -115,9 +115,7 @@ namespace spades {
// Protected members of the base class is only accessible by
// the current object, so...
void ReturnErrorVeneer(const std::string &reason) {
ReturnError(reason);
}
void ReturnErrorVeneer(const std::string &reason) { ReturnError(reason); }
class RequestThread : public Thread {
public:
@ -133,12 +131,13 @@ namespace spades {
curl_easy_setopt(
curl.get(), CURLOPT_WRITEFUNCTION,
static_cast<unsigned long (*)(void *, unsigned long, unsigned long, void *)>(
[](void *ptr, unsigned long size, unsigned long nmemb, void *data) -> unsigned long {
[](void *ptr, unsigned long size, unsigned long nmemb,
void *data) -> unsigned long {
size_t dataSize = size * nmemb;
reinterpret_cast<std::string *>(data)->append(
reinterpret_cast<const char *>(ptr), dataSize);
return dataSize;
}));
}));
curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA, &responseBuffer);
curl_easy_setopt(curl.get(), CURLOPT_USERAGENT, OpenSpades_VER_STR);
@ -411,4 +410,4 @@ namespace spades {
SPLog("Update feed is not available.");
}
}
}
} // namespace spades