diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:48:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-09-19 19:36:14 (GMT) |
commit | 76833149ec9f7d8605df901deceedc4b9c1c673a (patch) | |
tree | ab359fd39c3f50b388674305584c103332f7cbb4 /Source | |
parent | dc95020efa8cd29f199e6bac5ec3e556ab8584b7 (diff) | |
download | CMake-76833149ec9f7d8605df901deceedc4b9c1c673a.zip CMake-76833149ec9f7d8605df901deceedc4b9c1c673a.tar.gz CMake-76833149ec9f7d8605df901deceedc4b9c1c673a.tar.bz2 |
Convert: Simplify switch
Make it more clear what is happening here.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmOutputConverter.cxx | 9 |
1 files 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, |