Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Willers
KWSys
Commits
9c165368
Commit
9c165368
authored
11 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
Glob: Use string comparisons if you have them ready
Change-Id: Ib725299593d9fce88c73fcee2d640def5759b708
parent
ef3bfa01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Glob.cxx
+2
-4
2 additions, 4 deletions
Glob.cxx
with
2 additions
and
4 deletions
Glob.cxx
+
2
−
4
View file @
9c165368
...
...
@@ -229,8 +229,7 @@ void Glob::RecurseDirectory(kwsys_stl::string::size_type start,
for
(
cc
=
0
;
cc
<
d
.
GetNumberOfFiles
();
cc
++
)
{
fname
=
d
.
GetFile
(
cc
);
if
(
strcmp
(
fname
.
c_str
(),
"."
)
==
0
||
strcmp
(
fname
.
c_str
(),
".."
)
==
0
)
if
(
fname
==
"."
||
fname
==
".."
)
{
continue
;
}
...
...
@@ -310,8 +309,7 @@ void Glob::ProcessDirectory(kwsys_stl::string::size_type start,
for
(
cc
=
0
;
cc
<
d
.
GetNumberOfFiles
();
cc
++
)
{
fname
=
d
.
GetFile
(
cc
);
if
(
strcmp
(
fname
.
c_str
(),
"."
)
==
0
||
strcmp
(
fname
.
c_str
(),
".."
)
==
0
)
if
(
fname
==
"."
||
fname
==
".."
)
{
continue
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment