Skip to content

Commit bcad6b4

Browse files
committed
url: use foreach-style C++ loop
1 parent 7dae872 commit bcad6b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_url.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ class URL {
159159

160160
std::string path() const {
161161
std::string ret;
162-
for (auto i = context_.path.begin(); i != context_.path.end(); i++) {
162+
for (const auto& i : context_.path) {
163163
ret += '/';
164-
ret += *i;
164+
ret += i;
165165
}
166166
return ret;
167167
}

0 commit comments

Comments
 (0)