Loading include/core/typeinfo.h +2 −2 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ struct remove_pointer<T*> template <class T, class I> bool IsA(const I *aObject) { return remove_pointer<T>::type::ClassOf(aObject); return aObject && remove_pointer<T>::type::ClassOf(aObject); } template <class T, class I> Loading pcbnew/class_board.h +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ private: public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_T == aItem->Type(); return aItem && PCB_T == aItem->Type(); } void SetFileName( const wxString& aFileName ) { m_fileName = aFileName; } Loading pcbnew/class_board_connected_item.h +4 −1 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { if( aItem == NULL ) return false; switch( aItem->Type() ) { case PCB_PAD_T: Loading pcbnew/class_edge_mod.h +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_MODULE_EDGE_T == aItem->Type(); return aItem && PCB_MODULE_EDGE_T == aItem->Type(); } void Copy( EDGE_MODULE* source ); // copy structure Loading pcbnew/class_text_mod.h +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_MODULE_TEXT_T == aItem->Type(); return aItem && PCB_MODULE_TEXT_T == aItem->Type(); } Loading Loading
include/core/typeinfo.h +2 −2 Original line number Diff line number Diff line Loading @@ -150,7 +150,7 @@ struct remove_pointer<T*> template <class T, class I> bool IsA(const I *aObject) { return remove_pointer<T>::type::ClassOf(aObject); return aObject && remove_pointer<T>::type::ClassOf(aObject); } template <class T, class I> Loading
pcbnew/class_board.h +1 −1 Original line number Diff line number Diff line Loading @@ -222,7 +222,7 @@ private: public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_T == aItem->Type(); return aItem && PCB_T == aItem->Type(); } void SetFileName( const wxString& aFileName ) { m_fileName = aFileName; } Loading
pcbnew/class_board_connected_item.h +4 −1 Original line number Diff line number Diff line Loading @@ -60,6 +60,9 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { if( aItem == NULL ) return false; switch( aItem->Type() ) { case PCB_PAD_T: Loading
pcbnew/class_edge_mod.h +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_MODULE_EDGE_T == aItem->Type(); return aItem && PCB_MODULE_EDGE_T == aItem->Type(); } void Copy( EDGE_MODULE* source ); // copy structure Loading
pcbnew/class_text_mod.h +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ public: static inline bool ClassOf( const EDA_ITEM* aItem ) { return PCB_MODULE_TEXT_T == aItem->Type(); return aItem && PCB_MODULE_TEXT_T == aItem->Type(); } Loading