Eeschema: fix uninitialized members

Coverity: 102614, 102723
This commit is contained in:
Chris Pavlina 2016-01-09 18:35:20 -05:00
parent 5e36c48012
commit b381d99300
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,7 @@ SCH_COMPONENT::SCH_COMPONENT( const wxPoint& aPos, SCH_ITEM* aParent ) :
{ {
Init( aPos ); Init( aPos );
m_currentSheetPath = NULL; m_currentSheetPath = NULL;
m_fieldsAutoplaced = AUTOPLACED_NO;
} }
@ -133,6 +134,7 @@ SCH_COMPONENT::SCH_COMPONENT( LIB_PART& aPart, SCH_SHEET_PATH* sheet, int unit,
m_part_name = aPart.GetName(); m_part_name = aPart.GetName();
m_part = aPart.SharedPtr(); m_part = aPart.SharedPtr();
m_currentSheetPath = NULL; m_currentSheetPath = NULL;
m_fieldsAutoplaced = AUTOPLACED_NO;
SetTimeStamp( GetNewTimeStamp() ); SetTimeStamp( GetNewTimeStamp() );