From 91d24ea928a326c6414e0cd59eb8f0762ce903ed Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 10 Dec 2016 14:33:13 +0100 Subject: Do not std::move temporary object. --- plugingui/imagecache.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugingui/imagecache.cc b/plugingui/imagecache.cc index 6ce1171..d3130fe 100644 --- a/plugingui/imagecache.cc +++ b/plugingui/imagecache.cc @@ -79,8 +79,7 @@ Image& ImageCache::borrow(const std::string& filename) { Image image(filename); auto insertValue = - imageCache.emplace(filename, - std::move(std::make_pair(0, std::move(image)))); + imageCache.emplace(filename, std::make_pair(0, std::move(image))); cacheIterator = insertValue.first; } -- cgit v1.2.3