summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2012-03-04 03:08:30 +0100
committerTimo Weingärtner <timo@tiwe.de>2012-03-04 03:08:30 +0100
commitfb3fe1b085b30fcc9defa8f29477226806db085b (patch)
tree1244aabca42556e30ce0e52b85ab21f198bf11f9
parent5a901f9956801b7b9ed819da8b721a58ad93d095 (diff)
downloadhadori-fb3fe1b085b30fcc9defa8f29477226806db085b.tar.gz
Use initializer braces instead of make_pair
-rw-r--r--hadori.C6
1 files changed, 3 insertions, 3 deletions
diff --git a/hadori.C b/hadori.C
index 44b6e97..c2d24a9 100644
--- a/hadori.C
+++ b/hadori.C
@@ -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) {