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
Mathieu Westphal
KWSys
Commits
6074f33f
Commit
6074f33f
authored
Mar 11, 2014
by
Ben Boeckel
Committed by
Ben Boeckel
May 07, 2014
Browse files
SystemTools: Use static strings in SystemToolsAppendComponents
Change-Id: I51d3522ff01c360542c5f3c25bec9ce56307b809
parent
3254681a
Changes
1
Hide whitespace changes
Inline
Side-by-side
SystemTools.cxx
View file @
6074f33f
...
...
@@ -3130,17 +3130,19 @@ SystemToolsAppendComponents(
kwsys_stl
::
vector
<
kwsys_stl
::
string
>::
const_iterator
first
,
kwsys_stl
::
vector
<
kwsys_stl
::
string
>::
const_iterator
last
)
{
static
const
kwsys_stl
::
string
up
=
".."
;
static
const
kwsys_stl
::
string
cur
=
"."
;
for
(
kwsys_stl
::
vector
<
kwsys_stl
::
string
>::
const_iterator
i
=
first
;
i
!=
last
;
++
i
)
{
if
(
*
i
==
".."
)
if
(
*
i
==
up
)
{
if
(
out_components
.
size
()
>
1
)
{
out_components
.
eras
e
(
out_components
.
end
()
-
1
,
out_components
.
end
()
);
out_components
.
resiz
e
(
out_components
.
size
()
-
1
);
}
}
else
if
(
!
(
*
i
==
"."
)
&&
!
(
*
i
=
=
""
)
)
else
if
(
!
i
->
empty
(
)
&&
*
i
!
=
cur
)
{
out_components
.
push_back
(
*
i
);
}
...
...
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