diff --git a/eeschema/sch_marker.cpp b/eeschema/sch_marker.cpp index 98558801bc..0fb568b9f1 100644 --- a/eeschema/sch_marker.cpp +++ b/eeschema/sch_marker.cpp @@ -109,7 +109,7 @@ wxString SCH_MARKER::SerializeToString() const } -SCH_MARKER* SCH_MARKER::DeserializeFromString( const SCH_SHEET_LIST aSheetList, const wxString& data ) +SCH_MARKER* SCH_MARKER::DeserializeFromString( const SCH_SHEET_LIST& aSheetList, const wxString& data ) { wxArrayString props = wxSplit( data, '|' ); VECTOR2I markerPos( (int) strtol( props[1].c_str(), nullptr, 10 ), diff --git a/eeschema/sch_marker.h b/eeschema/sch_marker.h index 840ce5f73a..837636098e 100644 --- a/eeschema/sch_marker.h +++ b/eeschema/sch_marker.h @@ -54,7 +54,7 @@ public: void SwapData( SCH_ITEM* aItem ) override; wxString SerializeToString() const; - static SCH_MARKER* DeserializeFromString( const SCH_SHEET_LIST aSheetList, const wxString& data ); + static SCH_MARKER* DeserializeFromString( const SCH_SHEET_LIST& aSheetList, const wxString& data ); void ViewGetLayers( int aLayers[], int& aCount ) const override;