Cleanup: Fix clang-tidy errors.
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
* \ingroup bgpencil
|
* \ingroup bgpencil
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <cstdio>
|
||||||
|
|
||||||
#include "BLI_listbase.h"
|
#include "BLI_listbase.h"
|
||||||
|
|
||||||
|
@@ -448,7 +448,7 @@ void GpencilExporterSVG::add_text(pugi::xml_node node,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Convert a color to Hex value (#FFFFFF). */
|
/** 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 r = color[0] * 255.0f;
|
||||||
uint8_t g = color[1] * 255.0f;
|
uint8_t g = color[1] * 255.0f;
|
||||||
|
@@ -70,20 +70,20 @@ class GpencilExporterSVG : public GpencilExporter {
|
|||||||
void export_stroke_to_path(struct bGPDlayer *gpl,
|
void export_stroke_to_path(struct bGPDlayer *gpl,
|
||||||
struct bGPDstroke *gps,
|
struct bGPDstroke *gps,
|
||||||
pugi::xml_node node_gpl,
|
pugi::xml_node node_gpl,
|
||||||
const bool is_fill);
|
const bool do_fill);
|
||||||
|
|
||||||
void export_stroke_to_polyline(struct bGPDlayer *gpl,
|
void export_stroke_to_polyline(struct bGPDlayer *gpl,
|
||||||
struct bGPDstroke *gps,
|
struct bGPDstroke *gps,
|
||||||
pugi::xml_node node_gpl,
|
pugi::xml_node node_gpl,
|
||||||
const bool is_stroke,
|
const bool is_stroke,
|
||||||
const bool is_fill);
|
const bool do_fill);
|
||||||
|
|
||||||
void color_string_set(struct bGPDlayer *gpl,
|
void color_string_set(struct bGPDlayer *gpl,
|
||||||
struct bGPDstroke *gps,
|
struct bGPDstroke *gps,
|
||||||
pugi::xml_node node_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
|
} // namespace blender::io::gpencil
|
||||||
|
Reference in New Issue
Block a user