Fix a minor bug in my last commit that caused the debug build to fail.

This commit is contained in:
Wayne Stambaugh 2011-12-12 10:16:05 -05:00
parent 768ec258f7
commit d9af562f8f
2 changed files with 5 additions and 2 deletions

View File

@ -46,6 +46,9 @@
#include <boost/foreach.hpp>
const SCH_SHEET_PATH BOM_LABEL::emptySheetPath;
// Buffer to build the list of items used in netlist and erc calculations
NETLIST_OBJECT_LIST g_NetObjectslist;

View File

@ -485,11 +485,11 @@ class BOM_LABEL
// have to store it here since the object references will be duplicated.
SCH_SHEET_PATH m_sheetPath; //composed of UIDs
static SCH_SHEET_PATH emptySheetPath;
static const SCH_SHEET_PATH emptySheetPath;
public:
BOM_LABEL( KICAD_T aType = TYPE_NOT_INIT, SCH_ITEM* aLabel = NULL,
const SCH_SHEET_PATH& aSheetPath = emptySheetPath )
const SCH_SHEET_PATH& aSheetPath = emptySheetPath )
: m_type( aType )
, m_label( aLabel )
, m_sheetPath( aSheetPath )