Code formatting.
This commit is contained in:
parent
1617f15b51
commit
8898b34755
|
@ -148,15 +148,15 @@ struct remove_pointer<T*>
|
|||
* @return true, if aObject type equals T.
|
||||
*/
|
||||
template <class T, class I>
|
||||
bool IsA(const I *aObject)
|
||||
bool IsA( const I* aObject )
|
||||
{
|
||||
return aObject && remove_pointer<T>::type::ClassOf(aObject);
|
||||
return aObject && remove_pointer<T>::type::ClassOf( aObject );
|
||||
}
|
||||
|
||||
template <class T, class I>
|
||||
bool IsA(const I& aObject)
|
||||
bool IsA( const I& aObject )
|
||||
{
|
||||
return remove_pointer<T>::type::ClassOf(&aObject);
|
||||
return remove_pointer<T>::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<class Casted, class From>
|
||||
Casted dyn_cast(From aObject)
|
||||
Casted dyn_cast( From aObject )
|
||||
{
|
||||
if( remove_pointer<Casted>::type::ClassOf ( aObject ) )
|
||||
return static_cast<Casted>( aObject );
|
||||
|
@ -177,4 +177,3 @@ Casted dyn_cast(From aObject)
|
|||
}
|
||||
|
||||
#endif // __KICAD_TYPEINFO_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
|
||||
|
|
Loading…
Reference in New Issue