1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 14:53:16 +02:00

Eliminate redundant copy

This commit is contained in:
Eelco Dolstra 2014-08-01 17:30:51 +02:00
parent e0d7d0e45c
commit eea0401d7a
2 changed files with 3 additions and 1 deletions

View file

@ -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;