whitespace fixes

This commit is contained in:
Konstantin Käfer
2014-09-23 15:03:39 +02:00
parent ec3183754e
commit 0fc1f66868
3 changed files with 2 additions and 4 deletions

View File

@@ -37,8 +37,8 @@ void HTTPRequestBaton::start() {
struct tm *timeinfo;
char buffer[32];
const time_t modified = response->modified;
timeinfo = std::gmtime (&modified);
strftime_l(buffer, 32 ,"%a, %d %b %Y %H:%M:%S GMT", timeinfo, locale);
timeinfo = std::gmtime(&modified);
strftime_l(buffer, 32, "%a, %d %b %Y %H:%M:%S GMT", timeinfo, locale);
[request addValue:@(buffer) forHTTPHeaderField:@"If-Modified-Since"];
}

View File

@@ -47,7 +47,6 @@ struct HTTPRequestBaton {
HTTPRequestBaton();
~HTTPRequestBaton();
const unsigned long thread_id;
HTTPRequest *request = nullptr;
std::string path;

View File

@@ -53,7 +53,6 @@ void HTTPRequestBaton::stop() {
cancel();
}
void HTTPRequestBaton::notify(uv_async_t *async_unguarded) {
// Ensure deletion of pointers.
std::unique_ptr<uv_async_t, uv::deleter> async(async_unguarded);