Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
46c4b3d8
Commit
46c4b3d8
authored
Dec 30, 2015
by
Hugo Beauzée-Luyssen
Browse files
Directory: Remove a useless copy
parent
cec271aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filesystem/unix/Directory.cpp
View file @
46c4b3d8
...
...
@@ -85,7 +85,7 @@ std::string Directory::toAbsolute(const std::string& path)
void
Directory
::
read
()
{
auto
dir
=
std
::
unique_ptr
<
DIR
,
int
(
*
)(
DIR
*
)
>
(
opendir
(
m_path
.
c_str
()
),
closedir
);
std
::
unique_ptr
<
DIR
,
int
(
*
)(
DIR
*
)
>
dir
(
opendir
(
m_path
.
c_str
()
),
closedir
);
if
(
dir
==
nullptr
)
{
std
::
string
err
(
"Failed to open directory "
);
...
...
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