Skip to content

Commit

Permalink
Fixed cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed Feb 23, 2025
1 parent a1ac23a commit 22ce9b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cpr/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@

namespace cpr {

Files::Files(const std::initializer_list<std::string>& p_filepaths) {
for (const std::string& filepath : p_filepaths) {
files.emplace_back(filepath);
}
}
Files::Files(const std::initializer_list<std::string>& p_filepaths) : files(p_filepaths.begin(), p_filepaths.end()) {}

Files::iterator Files::begin() {
return files.begin();
Expand Down

0 comments on commit 22ce9b1

Please sign in to comment.