From eea0401d7a8ed1292f71d697e7a59c429aa18d5d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 1 Aug 2014 17:30:51 +0200 Subject: Eliminate redundant copy --- src/libutil/util.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libutil/util.hh') diff --git a/src/libutil/util.hh b/src/libutil/util.hh index 42215eb1d365..ade52c354076 100644 --- a/src/libutil/util.hh +++ b/src/libutil/util.hh @@ -69,6 +69,8 @@ struct DirEntry string name; ino_t ino; unsigned char type; // one of DT_* + DirEntry(const string & name, ino_t ino, unsigned char type) + : name(name), ino(ino), type(type) { } }; typedef vector DirEntries; -- cgit 1.4.1