code style

This commit is contained in:
John
2023-05-18 13:00:12 +02:00
parent 5b53fa313b
commit e606772e9d
8 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ SSLSocket* SSLSocket::connect(const string& host, const uint16_t& port, bool htt
time_t until = time(nullptr) + (timeout <= 3 ? 3 : timeout); // at least 3 seconds
if (!https) {
do {
bio = BIO_new_connect((char*)hostPort.c_str());
bio = BIO_new_connect(static_cast<const char*>(hostPort.c_str()));
if (isError("connect", bio)) {
break;
}
+1 -2
View File
@@ -132,8 +132,7 @@ class HttpClient {
m_caFile(caFile),
m_caPath(caPath),
#endif
m_socket(nullptr), m_port(0), m_timeout(0), m_bufferSize(0), m_buffer(nullptr)
{
m_socket(nullptr), m_port(0), m_timeout(0), m_bufferSize(0), m_buffer(nullptr) {
if (init) {
initialize();
}