Skip to content

Commit

Permalink
Single character wrapped by std::string to get rid of warning (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
cngzhnp authored May 11, 2023
1 parent 75d76a1 commit c9f14e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/include/opentelemetry/ext/http/common/url_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class UrlParser
pos = url_.find_first_of("/?", cpos);
if (pos == std::string::npos)
{
path_ = "/"; // use default path
path_ = std::string("/"); // use default path
if (is_port)
{
port_ = static_cast<uint16_t>(
Expand Down Expand Up @@ -122,7 +122,7 @@ class UrlParser
}
return;
}
path_ = "/";
path_ = std::string("/");
if (url_[cpos] == '?')
{
query_ = std::string(url_.begin() + cpos, url_.begin() + url_.length());
Expand Down

0 comments on commit c9f14e9

Please sign in to comment.