Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
76833149
Commit
76833149
authored
Aug 27, 2016
by
Stephen Kelly
Browse files
Convert: Simplify switch
Make it more clear what is happening here.
parent
dc95020e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmOutputConverter.cxx
View file @
76833149
...
...
@@ -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
,
...
...
Brad King
@brad.king
mentioned in commit
160a7ad6
·
Sep 20, 2016
mentioned in commit
160a7ad6
mentioned in commit 160a7ad64092299096f79b2ff1adf5bbcc8cad77
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment