diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 23:16:04 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 23:16:04 -0700 |
| commit | 8abbce636101fa5bed0d3f6d0a4e7f62c7d044ca (patch) | |
| tree | f8cece941fe8b40a1fcbfff9a5f4e755bd309973 | |
| parent | bd01f8ce83a0f4fc1963471623971d55d7460972 (diff) | |
| download | vcpkg-8abbce636101fa5bed0d3f6d0a4e7f62c7d044ca.tar.gz vcpkg-8abbce636101fa5bed0d3f6d0a4e7f62c7d044ca.zip | |
write_all_lines() -> write_lines()
| -rw-r--r-- | toolsrc/include/vcpkg_Files.h | 2 | ||||
| -rw-r--r-- | toolsrc/src/commands_install.cpp | 2 | ||||
| -rw-r--r-- | toolsrc/src/vcpkg_Files.cpp | 2 | ||||
| -rw-r--r-- | toolsrc/src/vcpkglib.cpp | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/vcpkg_Files.h b/toolsrc/include/vcpkg_Files.h index e86a70fac..3fbaad363 100644 --- a/toolsrc/include/vcpkg_Files.h +++ b/toolsrc/include/vcpkg_Files.h @@ -13,7 +13,7 @@ namespace vcpkg::Files virtual std::vector<fs::path> get_files_recursive(const fs::path& dir) const = 0; virtual std::vector<fs::path> get_files_non_recursive(const fs::path& dir) const = 0; - virtual void write_all_lines(const fs::path& file_path, const std::vector<std::string>& lines) = 0; + virtual void write_lines(const fs::path& file_path, const std::vector<std::string>& lines) = 0; virtual void write_contents(const fs::path& file_path, const std::string& data) = 0; virtual void rename(const fs::path& oldpath, const fs::path& newpath) = 0; virtual bool remove(const fs::path& path) = 0; diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp index ce3cbc942..8046b53a7 100644 --- a/toolsrc/src/commands_install.cpp +++ b/toolsrc/src/commands_install.cpp @@ -89,7 +89,7 @@ namespace vcpkg::Commands::Install std::sort(output.begin(), output.end()); - fs.write_all_lines(paths.listfile_path(bpgh), output); + fs.write_lines(paths.listfile_path(bpgh), output); } static void remove_first_n_chars(std::vector<std::string>* strings, const size_t n) diff --git a/toolsrc/src/vcpkg_Files.cpp b/toolsrc/src/vcpkg_Files.cpp index ac32e39f7..7f8a9139d 100644 --- a/toolsrc/src/vcpkg_Files.cpp +++ b/toolsrc/src/vcpkg_Files.cpp @@ -90,7 +90,7 @@ namespace vcpkg::Files return ret; } - virtual void write_all_lines(const fs::path & file_path, const std::vector<std::string>& lines) override + virtual void write_lines(const fs::path & file_path, const std::vector<std::string>& lines) override { std::fstream output(file_path, std::ios_base::out | std::ios_base::binary | std::ios_base::trunc); for (const std::string& line : lines) diff --git a/toolsrc/src/vcpkglib.cpp b/toolsrc/src/vcpkglib.cpp index 60f0413ec..7f2d737cb 100644 --- a/toolsrc/src/vcpkglib.cpp +++ b/toolsrc/src/vcpkglib.cpp @@ -165,7 +165,7 @@ namespace vcpkg // Replace the listfile on disk const fs::path updated_listfile_path = listfile_path.generic_string() + "_updated"; - fs.write_all_lines(updated_listfile_path, *lines); + fs.write_lines(updated_listfile_path, *lines); fs.rename(updated_listfile_path, listfile_path); } |
