From 2ce6dacec26c3b6a6aebf741e356ef186cb0475f Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 7 Apr 2021 11:53:22 +0900 Subject: [PATCH] renderer: initialize members. to shutdown annoyed code analizer detections. Change-Id: I523d61dc2924d1e02a125477306c620f02292076 --- src/renderer/tvg_renderer.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/renderer/tvg_renderer.hpp b/src/renderer/tvg_renderer.hpp index e5a71f4..987729d 100644 --- a/src/renderer/tvg_renderer.hpp +++ b/src/renderer/tvg_renderer.hpp @@ -17,14 +17,13 @@ namespace rive struct RIVE_EXPORT TvgPaint { uint8_t color[4]; - float thickness; - tvg::Fill *gradientFill; + float thickness = 1.0f; + tvg::Fill *gradientFill = nullptr; tvg::StrokeJoin join = tvg::StrokeJoin::Bevel; tvg::StrokeCap cap = tvg::StrokeCap::Butt; - RenderPaintStyle style; - bool isGradient; - bool gradientApplied; - TvgPaint() : isGradient(false), gradientApplied(false) {} + RenderPaintStyle style = RenderPaintStyle::fill; + bool isGradient = false; + bool gradientApplied = false; }; struct RIVE_EXPORT TvgRenderPath : public RenderPath @@ -125,4 +124,4 @@ namespace rive }; } -#endif \ No newline at end of file +#endif -- 2.7.4