summaryrefslogtreecommitdiff
path: root/include/mbgl/style/image.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/image.hpp')
-rw-r--r--include/mbgl/style/image.hpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/mbgl/style/image.hpp b/include/mbgl/style/image.hpp
index d551651cd0..5783fc2468 100644
--- a/include/mbgl/style/image.hpp
+++ b/include/mbgl/style/image.hpp
@@ -40,14 +40,9 @@ public:
float pixelRatio,
ImageStretches stretchX = {},
ImageStretches stretchY = {},
- optional<ImageContent> content = nullopt)
- : Image(std::move(id),
- std::move(image),
- pixelRatio,
- false,
- std::move(stretchX),
- std::move(stretchY),
- content) {}
+ const optional<ImageContent>& content = nullopt)
+ : Image(std::move(id), std::move(image), pixelRatio, false, std::move(stretchX), std::move(stretchY), content) {
+ }
Image(const Image&);
std::string getID() const;