[Bf-blender-cvs] [4425bacec4d] master: Cleanup: Fix clang-tidy errors.

Jeroen Bakker noreply at git.blender.org
Fri Mar 26 08:39:03 CET 2021


Commit: 4425bacec4d639fdc53f4cb8a6817326622b27b7
Author: Jeroen Bakker
Date:   Fri Mar 26 08:38:58 2021 +0100
Branches: master
https://developer.blender.org/rB4425bacec4d639fdc53f4cb8a6817326622b27b7

Cleanup: Fix clang-tidy errors.

===================================================================

M	source/blender/io/gpencil/intern/gpencil_io_capi.cc
M	source/blender/io/gpencil/intern/gpencil_io_export_svg.cc
M	source/blender/io/gpencil/intern/gpencil_io_export_svg.h

===================================================================

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 <stdio.h>
+#include <cstdio>
 
 #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



More information about the Bf-blender-cvs mailing list