summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-04-23 18:44:12 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-04-24 00:51:50 +0200
commit5f9ccea4152b63018095e247066524c425e7824e (patch)
tree1fc5576020af743b2165b6688242ea704ecc77b6
parent7bb00e45cc6fcfa85514bf4e645b0cedebbc0216 (diff)
downloadhadori-5f9ccea4152b63018095e247066524c425e7824e.tar.gz
std::move inode f into kept, we won't use it afterwards
-rw-r--r--hadori.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadori.C b/hadori.C
index 9abd40b..4867648 100644
--- a/hadori.C
+++ b/hadori.C
@@ -115,7 +115,7 @@ void handle_file(std::string const & path, struct stat const & s) {
return;
}
debug << "we keep " << f << std::endl;
- kept.insert({s.st_ino, f});
+ kept.insert({s.st_ino, std::move(f)});
sizes.insert({s.st_size, s.st_ino});
}