diff options
author | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:11:55 +0100 |
---|---|---|
committer | Kai Blaschke <kai.blaschke@kb-dev.net> | 2024-02-28 18:30:27 +0100 |
commit | cd23817bf1884fee4457ab3381320b0c8fc33f48 (patch) | |
tree | 9440ff3b0386ca9e3b1bac9eda168741ec6debb3 /source/game/StarDrawable.cpp | |
parent | 28d486446ca176ef0168a7284d85cb49a75a54fb (diff) |
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
Diffstat (limited to 'source/game/StarDrawable.cpp')
-rw-r--r-- | source/game/StarDrawable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarDrawable.cpp b/source/game/StarDrawable.cpp index 2c527a5..a3826e0 100644 --- a/source/game/StarDrawable.cpp +++ b/source/game/StarDrawable.cpp @@ -70,7 +70,7 @@ Drawable::ImagePart& Drawable::ImagePart::removeDirectives(bool keepImageCenterP Drawable Drawable::makeLine(Line2F const& line, float lineWidth, Color const& color, Vec2F const& position) { Drawable drawable; - drawable.part = LinePart{std::move(line), lineWidth}; + drawable.part = LinePart{std::move(line), lineWidth, {}}; drawable.color = color; drawable.position = position; @@ -110,7 +110,7 @@ Drawable::Drawable() Drawable::Drawable(Json const& json) { if (auto line = json.opt("line")) { - part = LinePart{jsonToLine2F(*line), json.getFloat("width")}; + part = LinePart{jsonToLine2F(*line), json.getFloat("width"), {}}; } else if (auto poly = json.opt("poly")) { part = PolyPart{jsonToPolyF(*poly)}; } else if (auto image = json.opt("image")) { |