LineInfo::toString() -> LineInfo::to_string()

This commit is contained in:
Alexander Karatarakis 2017-04-03 16:47:58 -07:00
parent 2d7beb71e7
commit dac8ace761
3 changed files with 4 additions and 4 deletions

View File

@ -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;
};
}

View File

@ -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);
}

View File

@ -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);