diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index b542848316..9686d980ad 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -275,7 +275,7 @@ int SCH_DRAWING_TOOLS::PlacePower( const TOOL_EVENT& aEvent ) int SCH_DRAWING_TOOLS::doPlaceComponent( SCH_COMPONENT* aComponent, SCHLIB_FILTER* aFilter, - SCH_BASE_FRAME::HISTORY_LIST aHistoryList ) + SCH_BASE_FRAME::HISTORY_LIST& aHistoryList ) { VECTOR2I cursorPos = getViewControls()->GetCursorPosition(); getViewControls()->ShowCursor( true ); diff --git a/eeschema/tools/sch_drawing_tools.h b/eeschema/tools/sch_drawing_tools.h index 856f7b12db..01c7a9598c 100644 --- a/eeschema/tools/sch_drawing_tools.h +++ b/eeschema/tools/sch_drawing_tools.h @@ -73,7 +73,7 @@ public: private: int doPlaceComponent( SCH_COMPONENT* aComponent, SCHLIB_FILTER* aFilter, - SCH_BASE_FRAME::HISTORY_LIST aHistoryList ); + SCH_BASE_FRAME::HISTORY_LIST& aHistoryList ); int doSingleClickPlace( KICAD_T aType );