aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-12-16 20:11:50 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-12-16 20:11:58 -0800
commit73bf8306b29d68853dc3c97d5dd415bd5e857cf5 (patch)
tree4cfeecdaaad131470731792bbc5b34c3467a443d
parentaad0cc4c042aad87b2b52eded0e465ed01e799c1 (diff)
downloadvcpkg-73bf8306b29d68853dc3c97d5dd415bd5e857cf5.tar.gz
vcpkg-73bf8306b29d68853dc3c97d5dd415bd5e857cf5.zip
Pass by const ref
-rw-r--r--toolsrc/include/coff_file_reader.h4
-rw-r--r--toolsrc/src/coff_file_reader.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/coff_file_reader.h b/toolsrc/include/coff_file_reader.h
index 1a9a071ef..edf6910a5 100644
--- a/toolsrc/include/coff_file_reader.h
+++ b/toolsrc/include/coff_file_reader.h
@@ -15,7 +15,7 @@ namespace vcpkg {namespace COFFFileReader
std::vector<MachineType> machine_types;
};
- dll_info read_dll(const fs::path path);
+ dll_info read_dll(const fs::path& path);
- lib_info read_lib(const fs::path path);
+ lib_info read_lib(const fs::path& path);
}}
diff --git a/toolsrc/src/coff_file_reader.cpp b/toolsrc/src/coff_file_reader.cpp
index 3bf7922f5..1f30ea70b 100644
--- a/toolsrc/src/coff_file_reader.cpp
+++ b/toolsrc/src/coff_file_reader.cpp
@@ -223,7 +223,7 @@ namespace vcpkg { namespace COFFFileReader
verify_equal_strings(FILE_START, file_start, FILE_START_SIZE, "LIB FILE_START");
}
- dll_info read_dll(const fs::path path)
+ dll_info read_dll(const fs::path& path)
{
std::fstream fs(path, std::ios::in | std::ios::binary | std::ios::ate);
Checks::check_exit(fs.is_open(), "Could not open file %s for reading", path.generic_string());
@@ -260,7 +260,7 @@ namespace vcpkg { namespace COFFFileReader
fpos_t m_absolute_position = 0;
};
- lib_info read_lib(const fs::path path)
+ lib_info read_lib(const fs::path& path)
{
std::fstream fs(path, std::ios::in | std::ios::binary | std::ios::ate);
Checks::check_exit(fs.is_open(), "Could not open file %s for reading", path.generic_string());