Commit 8898b347 authored by Maciej Suminski's avatar Maciej Suminski

Code formatting.

parent 1617f15b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment