From c9f14e9bcecfebf14dc003249dd207a0304bda1c Mon Sep 17 00:00:00 2001 From: Cengizhan Pasaoglu Date: Thu, 11 May 2023 17:46:20 +0300 Subject: [PATCH] Single character wrapped by std::string to get rid of warning (#2137) --- ext/include/opentelemetry/ext/http/common/url_parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/include/opentelemetry/ext/http/common/url_parser.h b/ext/include/opentelemetry/ext/http/common/url_parser.h index 2ac6d00af8..636546bba5 100644 --- a/ext/include/opentelemetry/ext/http/common/url_parser.h +++ b/ext/include/opentelemetry/ext/http/common/url_parser.h @@ -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( @@ -122,7 +122,7 @@ class UrlParser } return; } - path_ = "/"; + path_ = std::string("/"); if (url_[cpos] == '?') { query_ = std::string(url_.begin() + cpos, url_.begin() + url_.length());