aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-03 16:47:58 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-04 16:47:07 -0700
commitdac8ace7619c863e0f59e4d68623e55ebf71e04d (patch)
treeda1008eaaf0a119a13bb5d36f450f1ae78188892
parent2d7beb71e7f35daca1d1ad2d56ea85c39f2bc6e2 (diff)
downloadvcpkg-dac8ace7619c863e0f59e4d68623e55ebf71e04d.tar.gz
vcpkg-dac8ace7619c863e0f59e4d68623e55ebf71e04d.zip
LineInfo::toString() -> LineInfo::to_string()
-rw-r--r--toolsrc/include/LineInfo.h2
-rw-r--r--toolsrc/src/LineInfo.cpp2
-rw-r--r--toolsrc/src/vcpkg_Checks.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/include/LineInfo.h b/toolsrc/include/LineInfo.h
index a3de4fc29..c1bdd22cf 100644
--- a/toolsrc/include/LineInfo.h
+++ b/toolsrc/include/LineInfo.h
@@ -10,7 +10,7 @@ namespace vcpkg
constexpr LineInfo() : line_number(0), file_name(nullptr) {}
constexpr LineInfo(const int line_number, const char* file_name) : line_number(line_number), file_name(file_name) {}
- std::string toString() const;
+ std::string to_string() const;
};
}
diff --git a/toolsrc/src/LineInfo.cpp b/toolsrc/src/LineInfo.cpp
index fa26355e4..e32d237f4 100644
--- a/toolsrc/src/LineInfo.cpp
+++ b/toolsrc/src/LineInfo.cpp
@@ -4,7 +4,7 @@
namespace vcpkg
{
- std::string LineInfo::toString() const
+ std::string LineInfo::to_string() const
{
return Strings::format("%s(%d)", this->file_name, this->line_number);
}
diff --git a/toolsrc/src/vcpkg_Checks.cpp b/toolsrc/src/vcpkg_Checks.cpp
index d42793caf..8a80e3afe 100644
--- a/toolsrc/src/vcpkg_Checks.cpp
+++ b/toolsrc/src/vcpkg_Checks.cpp
@@ -9,7 +9,7 @@ namespace vcpkg::Checks
void unreachable(const LineInfo& line_info)
{
System::println(System::Color::error, "Error: Unreachable code was reached");
- System::println(System::Color::error, line_info.toString()); // Always print line_info here
+ System::println(System::Color::error, line_info.to_string()); // Always print line_info here
#ifndef NDEBUG
std::abort();
#else
@@ -22,7 +22,7 @@ namespace vcpkg::Checks
{
if (g_debugging)
{
- System::println(System::Color::error, line_info.toString());
+ System::println(System::Color::error, line_info.to_string());
}
::exit(exit_code);