Convert: Simplify switch
Make it more clear what is happening here.
This commit is contained in:
parent
dc95020efa
commit
76833149ec
|
@ -53,15 +53,14 @@ std::string cmOutputConverter::ConvertToRelativePath(
|
||||||
|
|
||||||
switch (relative) {
|
switch (relative) {
|
||||||
case HOME_OUTPUT:
|
case HOME_OUTPUT:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->GetState()->GetBinaryDirectory();
|
||||||
this->GetState()->GetBinaryDirectory(), source);
|
|
||||||
break;
|
break;
|
||||||
case START_OUTPUT:
|
case START_OUTPUT:
|
||||||
result = this->ConvertToRelativePath(
|
result = this->StateSnapshot.GetDirectory().GetCurrentBinary();
|
||||||
this->StateSnapshot.GetDirectory().GetCurrentBinary(), source);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return result;
|
|
||||||
|
return this->ConvertToRelativePath(result, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string cmOutputConverter::Convert(const std::string& source,
|
std::string cmOutputConverter::Convert(const std::string& source,
|
||||||
|
|
Loading…
Reference in New Issue