Code formatting.

This commit is contained in:
Maciej Suminski 2014-07-09 12:10:28 +02:00
parent 1617f15b51
commit 8898b34755
2 changed files with 6 additions and 7 deletions

View File

@ -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

View File

@ -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