Cleanup: Fix clang-tidy errors.

This commit is contained in:
Jeroen Bakker
2021-03-26 08:38:58 +01:00
parent 64d4e722a0
commit 4425bacec4
3 changed files with 6 additions and 6 deletions

View File

@@ -21,7 +21,7 @@
* \ingroup bgpencil
*/
#include <stdio.h>
#include <cstdio>
#include "BLI_listbase.h"

View File

@@ -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;

View File

@@ -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