[core] Fix std::move() misuse that disables copy elision

This commit is contained in:
Konstantin Käfer
2015-12-01 16:45:39 +01:00
parent e12cd6aef4
commit dc620f48de
10 changed files with 14 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ PremultipliedImage render(Map& map) {
map.renderStill([&](std::exception_ptr, PremultipliedImage&& image) {
promise.set_value(std::move(image));
});
return std::move(promise.get_future().get());
return promise.get_future().get();
}
void checkRendering(Map& map, const char * name) {