summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/map/map_snapshotter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/default/src/mbgl/map/map_snapshotter.cpp')
-rw-r--r--platform/default/src/mbgl/map/map_snapshotter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/platform/default/src/mbgl/map/map_snapshotter.cpp b/platform/default/src/mbgl/map/map_snapshotter.cpp
index fe051d8ca1..421d885dc4 100644
--- a/platform/default/src/mbgl/map/map_snapshotter.cpp
+++ b/platform/default/src/mbgl/map/map_snapshotter.cpp
@@ -14,6 +14,7 @@
#include <mbgl/util/exception.hpp>
#include <mbgl/util/logging.hpp>
#include <mbgl/util/thread.hpp>
+#include <utility>
namespace mbgl {
@@ -49,12 +50,12 @@ private:
class SnapshotterRenderer final : public RendererObserver {
public:
- SnapshotterRenderer(Size size, float pixelRatio, optional<std::string> localFontFamily)
+ SnapshotterRenderer(Size size, float pixelRatio, const optional<std::string>& localFontFamily)
: frontend(size,
pixelRatio,
gfx::HeadlessBackend::SwapBehaviour::NoFlush,
gfx::ContextMode::Unique,
- std::move(localFontFamily)) {}
+ localFontFamily) {}
void reset() {
hasPendingStillImageRequest = false;
@@ -178,11 +179,11 @@ public:
Attributions attributions,
PointForFn pfn,
LatLngForFn latLonFn) {
- cb(ptr, std::move(image), std::move(attributions), std::move(pfn), std::move(latLonFn));
+ cb(std::move(ptr), std::move(image), std::move(attributions), std::move(pfn), std::move(latLonFn));
renderStillCallback.reset();
});
- map.renderStill([this, actorRef = renderStillCallback->self()](std::exception_ptr error) {
+ map.renderStill([this, actorRef = renderStillCallback->self()](const std::exception_ptr& error) {
// Create lambda that captures the current transform state
// and can be used to translate for geographic to screen
// coordinates