about summary refs log tree commit diff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-01T15·30+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-01T15·30+0200
commiteea0401d7a8ed1292f71d697e7a59c429aa18d5d (patch)
treeceaf97279dc82d0a89bd0785d09f359aeeea017b /src/libutil/util.hh
parente0d7d0e45c5652bccc160ec49fc0c2c26d9c4d4e (diff)
Eliminate redundant copy
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh2
1 files changed, 2 insertions, 0 deletions
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<DirEntry> DirEntries;