From 2440d9c5015c2c22ce3521e6ab3491e815c200a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 28 Sep 2018 11:37:22 +0200 Subject: [PATCH] fixup! url: use foreach-style C++ loop --- src/node_url.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/node_url.h b/src/node_url.h index d6e54d26d40392..be3df7a91dc562 100644 --- a/src/node_url.h +++ b/src/node_url.h @@ -159,9 +159,8 @@ class URL { std::string path() const { std::string ret; - for (const auto& i : context_.path) { - ret += '/'; - ret += i; + for (const std::string& i : context_.path) { + ret += '/' + i; } return ret; }