Commit 76833149 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

Convert: Simplify switch

Make it more clear what is happening here.
parent dc95020e
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment