Convert: Make variables a bit more clear

This commit is contained in:
Stephen Kelly 2016-08-27 13:44:58 +02:00
parent 5aca066c5b
commit 4332131dcc
1 changed files with 5 additions and 5 deletions

View File

@ -49,26 +49,26 @@ std::string cmOutputConverter::ConvertToOutputForExisting(
std::string cmOutputConverter::ConvertToRelativePath( std::string cmOutputConverter::ConvertToRelativePath(
const std::string& source, RelativeRoot relative) const const std::string& source, RelativeRoot relative) const
{ {
std::string result = source; std::string result;
switch (relative) { switch (relative) {
case HOME: case HOME:
result = this->ConvertToRelativePath( result = this->ConvertToRelativePath(
this->GetState()->GetSourceDirectoryComponents(), result); this->GetState()->GetSourceDirectoryComponents(), source);
break; break;
case START: case START:
result = this->ConvertToRelativePath( result = this->ConvertToRelativePath(
this->StateSnapshot.GetDirectory().GetCurrentSourceComponents(), this->StateSnapshot.GetDirectory().GetCurrentSourceComponents(),
result); source);
break; break;
case HOME_OUTPUT: case HOME_OUTPUT:
result = this->ConvertToRelativePath( result = this->ConvertToRelativePath(
this->GetState()->GetBinaryDirectoryComponents(), result); this->GetState()->GetBinaryDirectoryComponents(), source);
break; break;
case START_OUTPUT: case START_OUTPUT:
result = this->ConvertToRelativePath( result = this->ConvertToRelativePath(
this->StateSnapshot.GetDirectory().GetCurrentBinaryComponents(), this->StateSnapshot.GetDirectory().GetCurrentBinaryComponents(),
result); source);
break; break;
} }
return result; return result;