summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-08-27 11:44:58 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-08-27 13:41:18 (GMT)
commit4332131dcca03b262e0dd51352eb2e27522887c8 (patch)
tree4ad8653709ea6ee1616d0aa1335d8d3f0d850326 /Source/cmOutputConverter.cxx
parent5aca066c5bbb7263624eb140378dd2f49e9d80ec (diff)
downloadCMake-4332131dcca03b262e0dd51352eb2e27522887c8.zip
CMake-4332131dcca03b262e0dd51352eb2e27522887c8.tar.gz
CMake-4332131dcca03b262e0dd51352eb2e27522887c8.tar.bz2
Convert: Make variables a bit more clear
Diffstat (limited to 'Source/cmOutputConverter.cxx')
-rw-r--r--Source/cmOutputConverter.cxx10
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;