Skip to content

Commit 67ed142

Browse files
committed
Re-order initialization of member variables
1 parent 558560e commit 67ed142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/include/opentelemetry/ext/http/client/curl/http_client_curl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Session : public opentelemetry::ext::http::client::Session,
172172
const std::string &scheme = "http",
173173
const std::string &host = "",
174174
uint16_t port = 80)
175-
: http_client_(http_client), host_{scheme + "://" + host + ":" + std::to_string(port) + "/"}
175+
: host_{scheme + "://" + host + ":" + std::to_string(port) + "/"}, http_client_(http_client)
176176
{}
177177

178178
std::shared_ptr<opentelemetry::ext::http::client::Request> CreateRequest() noexcept override

0 commit comments

Comments
 (0)