summaryrefslogtreecommitdiff
path: root/plugingui/imagecache.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 14:33:13 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-12-10 14:33:13 +0100
commit91d24ea928a326c6414e0cd59eb8f0762ce903ed (patch)
treeb8624e7d5cb6d8d772e6c43996a7399b5648ef00 /plugingui/imagecache.cc
parentcfd6b6e1f472fb7fdd8a34ac182a7dbb8e005481 (diff)
Do not std::move temporary object.
Diffstat (limited to 'plugingui/imagecache.cc')
-rw-r--r--plugingui/imagecache.cc3
1 files changed, 1 insertions, 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;
}