summaryrefslogtreecommitdiff
path: root/test/api/annotations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/api/annotations.cpp')
-rw-r--r--test/api/annotations.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/api/annotations.cpp b/test/api/annotations.cpp
index d80cff9e8e..f427331eef 100644
--- a/test/api/annotations.cpp
+++ b/test/api/annotations.cpp
@@ -16,7 +16,7 @@ using namespace mbgl;
std::shared_ptr<SpriteImage> namedMarker(const std::string &name) {
PremultipliedImage image = decodeImage(util::read_file("test/fixtures/sprites/" + name));
- return std::make_shared<SpriteImage>(image.width, image.height, 1.0, std::string(reinterpret_cast<char*>(image.data.get()), image.size()));
+ return std::make_shared<SpriteImage>(std::move(image), 1.0);
}
namespace {