From 46915175fd5fdc555aa68f1151a6f1ee1e34c3c5 Mon Sep 17 00:00:00 2001 From: Rodolfo Ribeiro Gomes Date: Sat, 20 Nov 2021 09:55:38 -0300 Subject: [PATCH] fix warning on MODULE_INVENTORY_BEGIN: misleading indentation --- synfig-core/src/synfig/module.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/synfig-core/src/synfig/module.h b/synfig-core/src/synfig/module.h index 4835fdedc88..4046747ba53 100644 --- a/synfig-core/src/synfig/module.h +++ b/synfig-core/src/synfig/module.h @@ -77,15 +77,17 @@ //! Marks the start of a module's inventory #define MODULE_INVENTORY_BEGIN(x) extern "C" { \ synfig::Module* _##x##_LTX_new_instance(synfig::ProgressCallback *cb) \ - { if(SYNFIG_CHECK_VERSION()){x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\ - if(cb)cb->error(#x": Unable to load module due to version mismatch."); return nullptr; } \ + { if(SYNFIG_CHECK_VERSION()) { x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\ + if(cb) { cb->error(#x": Unable to load module due to version mismatch."); } \ + return nullptr; \ }; x##_modclass::x##_modclass(synfig::ProgressCallback */*cb*/) { #else //! Marks the start of a module's inventory #define MODULE_INVENTORY_BEGIN(x) extern "C" { \ SYNFIG_API_EXPORT synfig::Module* x##_LTX_new_instance(synfig::ProgressCallback *cb) \ - { if(SYNFIG_CHECK_VERSION()){x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\ - if(cb)cb->error(#x": Unable to load module due to version mismatch."); return nullptr; } \ + { if(SYNFIG_CHECK_VERSION()) { x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\ + if(cb) { cb->error(#x": Unable to load module due to version mismatch."); } \ + return nullptr; \ }; x##_modclass::x##_modclass(synfig::ProgressCallback */*cb*/) { #endif @@ -146,7 +148,7 @@ #define END_IMPORTERS } //! Marks the end of a module's inventory -#define MODULE_INVENTORY_END } +#define MODULE_INVENTORY_END } } /* === T Y P E D E F S ===================================================== */