diff --git a/source/blender/editors/sculpt_paint/grease_pencil_intern.hh b/source/blender/editors/sculpt_paint/grease_pencil_intern.hh index 50ebf482276..284cc2bffb9 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_intern.hh +++ b/source/blender/editors/sculpt_paint/grease_pencil_intern.hh @@ -16,7 +16,7 @@ #include "paint_intern.hh" #ifdef WITH_POTRACE -#include "potracelib.h" +# include "potracelib.h" #endif namespace blender::bke::greasepencil { diff --git a/source/blender/editors/sculpt_paint/grease_pencil_trace_util.cc b/source/blender/editors/sculpt_paint/grease_pencil_trace_util.cc index 360397ef885..6ed511fa8f6 100644 --- a/source/blender/editors/sculpt_paint/grease_pencil_trace_util.cc +++ b/source/blender/editors/sculpt_paint/grease_pencil_trace_util.cc @@ -48,7 +48,7 @@ static int to_potrace(const TurnPolicy turn_policy) Bitmap *create_bitmap(const int2 &size) { -#ifdef WITH_POTRACE +# ifdef WITH_POTRACE constexpr int BM_WORDSIZE = int(sizeof(potrace_word)); constexpr int BM_WORDBITS = 8 * BM_WORDSIZE; @@ -66,22 +66,22 @@ Bitmap *create_bitmap(const int2 &size) bm->map = static_cast(MEM_mallocN(size.y * dy * sizeof(potrace_word), __func__)); return bm; -#else +# else UNUSED_VARS(size); return nullptr; -#endif +# endif } void free_bitmap(Bitmap *bm) { -#ifdef WITH_POTRACE +# ifdef WITH_POTRACE if (bm != nullptr) { MEM_freeN(bm->map); } MEM_SAFE_FREE(bm); -#else +# else UNUSED_VARS(bm); -#endif +# endif } ImBuf *bitmap_to_image(const Bitmap &bm)