diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-01 17:30:51 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-01 17:30:51 +0200 |
commit | eea0401d7a8ed1292f71d697e7a59c429aa18d5d (patch) | |
tree | ceaf97279dc82d0a89bd0785d09f359aeeea017b /src/libutil/util.cc | |
parent | e0d7d0e45c5652bccc160ec49fc0c2c26d9c4d4e (diff) |
Eliminate redundant copy
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 7dc6fe72a..595e7243e 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -216,7 +216,7 @@ DirEntries readDirectory(const Path & path) checkInterrupt(); string name = dirent->d_name; if (name == "." || name == "..") continue; - entries.emplace_back(DirEntry({ name, dirent->d_ino, dirent->d_type })); + entries.emplace_back(name, dirent->d_ino, dirent->d_type); } if (errno) throw SysError(format("reading directory `%1%'") % path); |