From dfc94f2cabf61f38e332e6cd27ea27fb6a536a04 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 7 May 2019 21:46:15 -0400 Subject: [PATCH] Code cleanup --- example/benchmark.cc | 4 ++-- example/client.cc | 4 +--- example/hello.cc | 2 -- example/server.cc | 2 -- example/simplesvr.cc | 2 -- httplib.h | 2 -- test/test.cc | 2 -- 7 files changed, 3 insertions(+), 15 deletions(-) diff --git a/example/benchmark.cc b/example/benchmark.cc index d4092f5..8e300b9 100644 --- a/example/benchmark.cc +++ b/example/benchmark.cc @@ -1,11 +1,11 @@ -#include #include +#include #include using namespace std; struct StopWatch { - StopWatch(const string& label) : label_(label) { + StopWatch(const string &label) : label_(label) { start_ = chrono::system_clock::now(); } ~StopWatch() { diff --git a/example/client.cc b/example/client.cc index 0764451..21f071a 100644 --- a/example/client.cc +++ b/example/client.cc @@ -32,12 +32,10 @@ int main(void) { #ifdef CPPHTTPLIB_OPENSSL_SUPPORT auto result = cli.get_openssl_verify_result(); if (result) { - cout << "verify error: " << X509_verify_cert_error_string(result) << endl; + cout << "verify error: " << X509_verify_cert_error_string(result) << endl; } #endif } return 0; } - -// vim: et ts=4 sw=4 cin cino={1s ff=unix diff --git a/example/hello.cc b/example/hello.cc index 1dbf3fe..183cb81 100644 --- a/example/hello.cc +++ b/example/hello.cc @@ -17,5 +17,3 @@ int main(void) { svr.listen("localhost", 1234); } - -// vim: et ts=4 sw=4 cin cino={1s ff=unix diff --git a/example/server.cc b/example/server.cc index d580fbd..85b5a87 100644 --- a/example/server.cc +++ b/example/server.cc @@ -111,5 +111,3 @@ int main(void) { return 0; } - -// vim: et ts=4 sw=4 cin cino={1s ff=unix diff --git a/example/simplesvr.cc b/example/simplesvr.cc index 82d91b3..8d619cd 100644 --- a/example/simplesvr.cc +++ b/example/simplesvr.cc @@ -133,5 +133,3 @@ int main(int argc, const char **argv) { return 0; } - -// vim: et ts=4 sw=4 cin cino={1s ff=unix diff --git a/httplib.h b/httplib.h index 12bfeeb..3a9450a 100644 --- a/httplib.h +++ b/httplib.h @@ -2557,5 +2557,3 @@ inline bool SSLClient::check_host_name(const char *pattern, } // namespace httplib #endif // CPPHTTPLIB_HTTPLIB_H - -// vim: et ts=4 sw=4 cin cino={1s ff=unix diff --git a/test/test.cc b/test/test.cc index 62be715..afa1363 100644 --- a/test/test.cc +++ b/test/test.cc @@ -1382,5 +1382,3 @@ TEST(CleanupTest, WSACleanup) { ASSERT_EQ(0, ret); } #endif - -// vim: et ts=4 sw=4 cin cino={1s ff=unix