From 1d9516c0a716b31e78fc4df6855fe42c46b5d47c Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Mon, 20 Aug 2007 02:08:15 +0000 Subject: [PATCH] made GetCurItem() inline --- common/base_screen.cpp | 6 ------ include/drawpanel_wxstruct.h | 5 ++--- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/common/base_screen.cpp b/common/base_screen.cpp index 7d320c9fec..9ca8ce3760 100644 --- a/common/base_screen.cpp +++ b/common/base_screen.cpp @@ -555,12 +555,6 @@ EDA_BaseStruct* BASE_SCREEN::GetItemFromRedoList( void ) } - -EDA_BaseStruct* BASE_SCREEN::GetCurItem() -{ - return m_CurrentItem; -} - void BASE_SCREEN::SetCurItem( EDA_BaseStruct* aCurItem ) { m_CurrentItem = aCurItem; diff --git a/include/drawpanel_wxstruct.h b/include/drawpanel_wxstruct.h index 8a7bf8810a..46d5a6de2a 100644 --- a/include/drawpanel_wxstruct.h +++ b/include/drawpanel_wxstruct.h @@ -260,13 +260,12 @@ public: /** * Function SetCurItem * sets the currently selected object, m_CurrentItem. - * This intentionally not inlined so we can set breakpoints on the + * This is intentionally not inlined so we can set breakpoints on the * activity easier in base_screen.cpp. * @param current Any object derived from EDA_BaseStruct */ void SetCurItem( EDA_BaseStruct* current ); - EDA_BaseStruct* GetCurItem(); - + EDA_BaseStruct* GetCurItem() const { return m_CurrentItem; } /* fonctions relatives au zoom */ int GetZoom( void ); /* retourne le coeff de zoom */