Skip to content

Commit e4c33d2

Browse files
authored
style(clang-tidy): fix modernize-use-auto checks (#1812)
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
1 parent 25fc3db commit e4c33d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/uri/escaping.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ auto uri_unescape(std::istream &input, std::ostream &output) -> void {
8787
}
8888

8989
const std::string input_string{input_stream.str()};
90-
std::string::value_type *const buffer =
91-
new std::string::value_type[input_string.size() + 1];
90+
auto const buffer = new std::string::value_type[input_string.size() + 1];
9291
try {
9392
std::copy(input_string.cbegin(), input_string.cend(), buffer);
9493
} catch (...) {

0 commit comments

Comments
 (0)