diff --git a/eeschema/netlist.cpp b/eeschema/netlist.cpp index 67b13a9d82..215ad3a750 100644 --- a/eeschema/netlist.cpp +++ b/eeschema/netlist.cpp @@ -46,6 +46,9 @@ #include +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; diff --git a/eeschema/netlist.h b/eeschema/netlist.h index e6c030d20f..6a291feb87 100644 --- a/eeschema/netlist.h +++ b/eeschema/netlist.h @@ -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 )