diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:44:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-08-27 13:41:18 (GMT) |
commit | 4332131dcca03b262e0dd51352eb2e27522887c8 (patch) | |
tree | 4ad8653709ea6ee1616d0aa1335d8d3f0d850326 /Source | |
parent | 5aca066c5bbb7263624eb140378dd2f49e9d80ec (diff) | |
download | CMake-4332131dcca03b262e0dd51352eb2e27522887c8.zip CMake-4332131dcca03b262e0dd51352eb2e27522887c8.tar.gz CMake-4332131dcca03b262e0dd51352eb2e27522887c8.tar.bz2 |
Convert: Make variables a bit more clear
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmOutputConverter.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmOutputConverter.cxx b/Source/cmOutputConverter.cxx index f056a1b..630da42 100644 --- a/Source/cmOutputConverter.cxx +++ b/Source/cmOutputConverter.cxx @@ -49,26 +49,26 @@ std::string cmOutputConverter::ConvertToOutputForExisting( std::string cmOutputConverter::ConvertToRelativePath( const std::string& source, RelativeRoot relative) const { - std::string result = source; + std::string result; switch (relative) { case HOME: result = this->ConvertToRelativePath( - this->GetState()->GetSourceDirectoryComponents(), result); + this->GetState()->GetSourceDirectoryComponents(), source); break; case START: result = this->ConvertToRelativePath( this->StateSnapshot.GetDirectory().GetCurrentSourceComponents(), - result); + source); break; case HOME_OUTPUT: result = this->ConvertToRelativePath( - this->GetState()->GetBinaryDirectoryComponents(), result); + this->GetState()->GetBinaryDirectoryComponents(), source); break; case START_OUTPUT: result = this->ConvertToRelativePath( this->StateSnapshot.GetDirectory().GetCurrentBinaryComponents(), - result); + source); break; } return result; |