aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-12-18 16:38:13 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2018-12-18 16:38:13 +0000
commitfb601354e11d8c0db41cd119d51fe1acd4afa648 (patch)
tree805d7f91dde3881ed357f1c2fa9957ae37d276dc /libstdc++-v3/src
parent8d53154813367d0745c89f975b8dbc00bd032afc (diff)
downloadgcc-fb601354e11d8c0db41cd119d51fe1acd4afa648.zip
gcc-fb601354e11d8c0db41cd119d51fe1acd4afa648.tar.gz
gcc-fb601354e11d8c0db41cd119d51fe1acd4afa648.tar.bz2
Fix previous commit to move instead of copying
* src/filesystem/std-dir.cc (filesystem::_Dir::advance): Move new path instead of copying. From-SVN: r267237
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/filesystem/std-dir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/src/filesystem/std-dir.cc b/libstdc++-v3/src/filesystem/std-dir.cc
index 216182a..b0f869f 100644
--- a/libstdc++-v3/src/filesystem/std-dir.cc
+++ b/libstdc++-v3/src/filesystem/std-dir.cc
@@ -63,7 +63,7 @@ struct fs::_Dir : _Dir_base
{
auto name = path;
name /= entp->d_name;
- entry = fs::directory_entry{name, get_file_type(*entp)};
+ entry = fs::directory_entry{std::move(name), get_file_type(*entp)};
return true;
}
else if (!ec)