Skip to content

Commit 22ce9b1

Browse files
committed
Fixed cppcheck
1 parent a1ac23a commit 22ce9b1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cpr/file.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55

66
namespace cpr {
77

8-
Files::Files(const std::initializer_list<std::string>& p_filepaths) {
9-
for (const std::string& filepath : p_filepaths) {
10-
files.emplace_back(filepath);
11-
}
12-
}
8+
Files::Files(const std::initializer_list<std::string>& p_filepaths) : files(p_filepaths.begin(), p_filepaths.end()) {}
139

1410
Files::iterator Files::begin() {
1511
return files.begin();

0 commit comments

Comments
 (0)