[core] Don't use std::move on forwarding references

This commit is contained in:
John Firebaugh
2016-09-04 18:58:05 -07:00
parent 030234c7a6
commit 29f4204d1c
2 changed files with 17 additions and 14 deletions

View File

@@ -84,7 +84,7 @@ Worker::parseRasterTile(std::unique_ptr<RasterBucket> bucket,
const std::shared_ptr<const std::string> data,
std::function<void(RasterTileParseResult)> callback) {
current = (current + 1) % threads.size();
return threads[current]->invokeWithCallback(&Worker::Impl::parseRasterTile, bucket,
return threads[current]->invokeWithCallback(&Worker::Impl::parseRasterTile, std::move(bucket),
data, callback);
}