diff options
author | Timo Weingärtner <timo@tiwe.de> | 2012-03-04 03:08:30 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2012-03-04 03:08:30 +0100 |
commit | fb3fe1b085b30fcc9defa8f29477226806db085b (patch) | |
tree | 1244aabca42556e30ce0e52b85ab21f198bf11f9 /hadori.C | |
parent | 5a901f9956801b7b9ed819da8b721a58ad93d095 (diff) | |
download | hadori-fb3fe1b085b30fcc9defa8f29477226806db085b.tar.gz |
Use initializer braces instead of make_pair
Diffstat (limited to 'hadori.C')
-rw-r--r-- | hadori.C | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -112,14 +112,14 @@ void handle_file(std::string const & path, struct stat const & s) { continue; verbose << "linking " << candidate << " to " << path << std::endl; if (s.st_nlink > 1) - to_link.insert(std::make_pair(s.st_ino, it.second)); + to_link.insert({s.st_ino, it.second}); if (not config.count("dry-run")) do_link(candidate, path); return; } debug << "we keep " << f << std::endl; - kept.insert(std::make_pair(s.st_ino, f)); - sizes.insert(std::make_pair(s.st_size, s.st_ino)); + kept.insert({s.st_ino, f}); + sizes.insert({s.st_size, s.st_ino}); } void recurse (std::string const & dir, dev_t const dev) { |