mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-29 04:09:35 +03:00
Convert: Simplify switch
Make it more clear what is happening here.
This commit is contained in:
@@ -53,15 +53,14 @@ std::string cmOutputConverter::ConvertToRelativePath(
|
||||
|
||||
switch (relative) {
|
||||
case HOME_OUTPUT:
|
||||
result = this->ConvertToRelativePath(
|
||||
this->GetState()->GetBinaryDirectory(), source);
|
||||
result = this->GetState()->GetBinaryDirectory();
|
||||
break;
|
||||
case START_OUTPUT:
|
||||
result = this->ConvertToRelativePath(
|
||||
this->StateSnapshot.GetDirectory().GetCurrentBinary(), source);
|
||||
result = this->StateSnapshot.GetDirectory().GetCurrentBinary();
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
|
||||
return this->ConvertToRelativePath(result, source);
|
||||
}
|
||||
|
||||
std::string cmOutputConverter::Convert(const std::string& source,
|
||||
|
||||
Reference in New Issue
Block a user