From 4425bacec4d639fdc53f4cb8a6817326622b27b7 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Fri, 26 Mar 2021 08:38:58 +0100 Subject: Cleanup: Fix clang-tidy errors. --- source/blender/io/gpencil/intern/gpencil_io_capi.cc | 2 +- source/blender/io/gpencil/intern/gpencil_io_export_svg.cc | 2 +- source/blender/io/gpencil/intern/gpencil_io_export_svg.h | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/io/gpencil') diff --git a/source/blender/io/gpencil/intern/gpencil_io_capi.cc b/source/blender/io/gpencil/intern/gpencil_io_capi.cc index 231d23948ef..ae1a4e32b1c 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_capi.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_capi.cc @@ -21,7 +21,7 @@ * \ingroup bgpencil */ -#include +#include #include "BLI_listbase.h" diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc index d5d519dba93..faa3e377f9c 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc +++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.cc @@ -448,7 +448,7 @@ void GpencilExporterSVG::add_text(pugi::xml_node node, } /** Convert a color to Hex value (#FFFFFF). */ -std::string GpencilExporterSVG::rgb_to_hexstr(float color[3]) +std::string GpencilExporterSVG::rgb_to_hexstr(const float color[3]) { uint8_t r = color[0] * 255.0f; uint8_t g = color[1] * 255.0f; diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.h b/source/blender/io/gpencil/intern/gpencil_io_export_svg.h index f564736c16e..837bc4f94a7 100644 --- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.h +++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.h @@ -70,20 +70,20 @@ class GpencilExporterSVG : public GpencilExporter { void export_stroke_to_path(struct bGPDlayer *gpl, struct bGPDstroke *gps, pugi::xml_node node_gpl, - const bool is_fill); + const bool do_fill); void export_stroke_to_polyline(struct bGPDlayer *gpl, struct bGPDstroke *gps, pugi::xml_node node_gpl, const bool is_stroke, - const bool is_fill); + const bool do_fill); void color_string_set(struct bGPDlayer *gpl, struct bGPDstroke *gps, pugi::xml_node node_gps, - const bool is_fill); + const bool do_fill); - std::string rgb_to_hexstr(float color[3]); + std::string rgb_to_hexstr(const float color[3]); }; } // namespace blender::io::gpencil -- cgit v1.2.3