Skip to content

Commit 56d8168

Browse files
committed
clangformat
1 parent 5d87cc0 commit 56d8168

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

httplib.h

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4166,8 +4166,8 @@ inline bool has_crlf(const char *s) {
41664166

41674167
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
41684168
inline std::string message_digest(const std::string &s, const EVP_MD *algo) {
4169-
auto context = std::unique_ptr<EVP_MD_CTX, decltype(&EVP_MD_CTX_free)>
4170-
(EVP_MD_CTX_new(), EVP_MD_CTX_free);
4169+
auto context = std::unique_ptr<EVP_MD_CTX, decltype(&EVP_MD_CTX_free)>(
4170+
EVP_MD_CTX_new(), EVP_MD_CTX_free);
41714171

41724172
unsigned int hash_length = 0;
41734173
unsigned char hash[EVP_MAX_MD_SIZE];
@@ -4178,8 +4178,8 @@ inline std::string message_digest(const std::string &s, const EVP_MD *algo) {
41784178

41794179
std::stringstream ss;
41804180
for (auto i = 0u; i < hash_length; ++i) {
4181-
ss << std::hex << std::setw(2) << std::setfill('0') <<
4182-
(unsigned int) hash[i];
4181+
ss << std::hex << std::setw(2) << std::setfill('0')
4182+
<< (unsigned int)hash[i];
41834183
}
41844184

41854185
return ss.str();
@@ -4234,7 +4234,9 @@ class WSInit {
42344234
if (WSAStartup(0x0002, &wsaData) == 0) is_valid_ = true;
42354235
}
42364236

4237-
~WSInit() { if (is_valid_) WSACleanup(); }
4237+
~WSInit() {
4238+
if (is_valid_) WSACleanup();
4239+
}
42384240

42394241
bool is_valid_ = false;
42404242
};
@@ -6970,8 +6972,8 @@ inline void ClientImpl::set_follow_location(bool on) { follow_location_ = on; }
69706972

69716973
inline void ClientImpl::set_url_encode(bool on) { url_encode_ = on; }
69726974

6973-
inline void ClientImpl::set_hostname_addr_map(
6974-
std::map<std::string, std::string> addr_map) {
6975+
inline void
6976+
ClientImpl::set_hostname_addr_map(std::map<std::string, std::string> addr_map) {
69756977
addr_map_ = std::move(addr_map);
69766978
}
69776979

@@ -8096,8 +8098,8 @@ inline size_t Client::is_socket_open() const { return cli_->is_socket_open(); }
80968098

80978099
inline void Client::stop() { cli_->stop(); }
80988100

8099-
inline void Client::set_hostname_addr_map(
8100-
std::map<std::string, std::string> addr_map) {
8101+
inline void
8102+
Client::set_hostname_addr_map(std::map<std::string, std::string> addr_map) {
81018103
cli_->set_hostname_addr_map(std::move(addr_map));
81028104
}
81038105

0 commit comments

Comments
 (0)