Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chuck Atkins
KWSys
Commits
61430cd6
Commit
61430cd6
authored
Feb 07, 2006
by
Andy Cedilnik
Browse files
COMP: Fix build problem
parent
b913e6d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
SystemTools.cxx
View file @
61430cd6
...
...
@@ -2475,7 +2475,7 @@ std::string SystemTools::RelativePath(const char* local, const char* remote)
}
// for each entry that is not common in the remote path add it
// to the final path.
for
(
std
::
vector
<
kwsys_stl
::
s
tring
>::
iterator
i
=
remoteSplit
.
begin
();
for
(
std
::
vector
<
S
tring
>::
iterator
i
=
remoteSplit
.
begin
();
i
!=
remoteSplit
.
end
();
++
i
)
{
if
(
i
->
size
())
...
...
@@ -2486,7 +2486,7 @@ std::string SystemTools::RelativePath(const char* local, const char* remote)
std
::
string
relativePath
;
// result string
// now turn the array of directories into a unix path by puttint /
// between each entry that does not already have one
for
(
std
::
vector
<
kwsys_stl
::
s
tring
>::
iterator
i
=
finalPath
.
begin
();
for
(
std
::
vector
<
S
tring
>::
iterator
i
=
finalPath
.
begin
();
i
!=
finalPath
.
end
();
++
i
)
{
if
(
relativePath
.
size
()
&&
relativePath
[
relativePath
.
size
()
-
1
]
!=
'/'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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