From 76833149ec9f7d8605df901deceedc4b9c1c673a Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 27 Aug 2016 13:48:57 +0200 Subject: Convert: Simplify switch Make it more clear what is happening here. --- Source/cmOutputConverter.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index cc3ee93f..4f12ae0 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -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, -- cgit v0.12