Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
a631200c
Commit
a631200c
authored
Jan 30, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update/Walk: declare std::string at assignment
Reduce overhead.
parent
6207a3f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
Walk.cxx
src/db/update/Walk.cxx
+2
-4
No files found.
src/db/update/Walk.cxx
View file @
a631200c
...
...
@@ -341,15 +341,12 @@ UpdateWalk::UpdateDirectory(Directory &directory, const struct stat *st)
PurgeDeletedFromDirectory
(
directory
);
while
(
reader
.
ReadEntry
())
{
std
::
string
utf8
;
struct
stat
st2
;
const
auto
entry
=
reader
.
GetEntry
();
if
(
skip_path
(
entry
)
||
exclude_list
.
Check
(
entry
))
continue
;
utf8
=
entry
.
ToUTF8
();
const
std
::
string
utf8
=
entry
.
ToUTF8
();
if
(
utf8
.
empty
())
continue
;
...
...
@@ -358,6 +355,7 @@ UpdateWalk::UpdateDirectory(Directory &directory, const struct stat *st)
continue
;
}
struct
stat
st2
;
if
(
stat_directory_child
(
directory
,
utf8
.
c_str
(),
&
st2
)
==
0
)
UpdateDirectoryChild
(
directory
,
utf8
.
c_str
(),
&
st2
);
else
...
...
Write
Preview
Markdown
is supported
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