summaryrefslogtreecommitdiff
path: root/test/algorithm/generate_clip_ids.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/algorithm/generate_clip_ids.test.cpp')
-rw-r--r--test/algorithm/generate_clip_ids.test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/algorithm/generate_clip_ids.test.cpp b/test/algorithm/generate_clip_ids.test.cpp
index 46a577b994..1ebdccb99e 100644
--- a/test/algorithm/generate_clip_ids.test.cpp
+++ b/test/algorithm/generate_clip_ids.test.cpp
@@ -7,7 +7,14 @@ using namespace mbgl;
struct Renderable {
UnwrappedTileID id;
ClipID clip;
- bool used = true;
+ bool used;
+
+ Renderable(UnwrappedTileID id_,
+ ClipID clip_,
+ bool used_ = true)
+ : id(std::move(id_)),
+ clip(std::move(clip_)),
+ used(used_) {}
bool operator==(const Renderable& rhs) const {
return id == rhs.id && clip == rhs.clip;