diff options
Diffstat (limited to 'test/src/mbgl')
-rw-r--r-- | test/src/mbgl/test/stub_style_observer.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/mbgl/test/stub_style_observer.hpp b/test/src/mbgl/test/stub_style_observer.hpp index 7e22c68823..a3a48b04c0 100644 --- a/test/src/mbgl/test/stub_style_observer.hpp +++ b/test/src/mbgl/test/stub_style_observer.hpp @@ -18,8 +18,8 @@ public: if (glyphsError) glyphsError(fontStack, glyphRange, error); } - void onSpriteLoaded() override { - if (spriteLoaded) spriteLoaded(); + void onSpriteLoaded(Images&& images) override { + if (spriteLoaded) spriteLoaded(std::move(images)); } void onSpriteError(std::exception_ptr error) override { @@ -48,7 +48,7 @@ public: std::function<void (const FontStack&, const GlyphRange&)> glyphsLoaded; std::function<void (const FontStack&, const GlyphRange&, std::exception_ptr)> glyphsError; - std::function<void ()> spriteLoaded; + std::function<void (Images&&)> spriteLoaded; std::function<void (std::exception_ptr)> spriteError; std::function<void (Source&)> sourceLoaded; std::function<void (Source&)> sourceChanged; |