diff --git a/include/core/typeinfo.h b/include/core/typeinfo.h index d995b14fcb..dbb066f4a8 100644 --- a/include/core/typeinfo.h +++ b/include/core/typeinfo.h @@ -148,15 +148,15 @@ struct remove_pointer * @return true, if aObject type equals T. */ template -bool IsA(const I *aObject) +bool IsA( const I* aObject ) { - return aObject && remove_pointer::type::ClassOf(aObject); + return aObject && remove_pointer::type::ClassOf( aObject ); } template -bool IsA(const I& aObject) +bool IsA( const I& aObject ) { - return remove_pointer::type::ClassOf(&aObject); + return remove_pointer::type::ClassOf( &aObject ); } /** @@ -168,7 +168,7 @@ bool IsA(const I& aObject) * @return down-casted object or NULL if type doesn't match Casted. */ template -Casted dyn_cast(From aObject) +Casted dyn_cast( From aObject ) { if( remove_pointer::type::ClassOf ( aObject ) ) return static_cast( aObject ); @@ -177,4 +177,3 @@ Casted dyn_cast(From aObject) } #endif // __KICAD_TYPEINFO_H - diff --git a/pcbnew/module_editor_frame.h b/pcbnew/module_editor_frame.h index f7e0dd4c2a..7a3f513afc 100644 --- a/pcbnew/module_editor_frame.h +++ b/pcbnew/module_editor_frame.h @@ -161,7 +161,7 @@ public: * and prepare, if needed the refresh of the 3D frame showing the footprint * do not forget to call the basic OnModify function to update auxiliary info */ - virtual void OnModify( ); + virtual void OnModify(); /** * Function ToPrinter