made GetCurItem() inline

This commit is contained in:
dickelbeck 2007-08-20 02:08:15 +00:00
parent 5c3b480afe
commit 1d9516c0a7
2 changed files with 2 additions and 9 deletions

View File

@ -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 ) void BASE_SCREEN::SetCurItem( EDA_BaseStruct* aCurItem )
{ {
m_CurrentItem = aCurItem; m_CurrentItem = aCurItem;

View File

@ -260,13 +260,12 @@ public:
/** /**
* Function SetCurItem * Function SetCurItem
* sets the currently selected object, m_CurrentItem. * 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. * activity easier in base_screen.cpp.
* @param current Any object derived from EDA_BaseStruct * @param current Any object derived from EDA_BaseStruct
*/ */
void SetCurItem( EDA_BaseStruct* current ); void SetCurItem( EDA_BaseStruct* current );
EDA_BaseStruct* GetCurItem(); EDA_BaseStruct* GetCurItem() const { return m_CurrentItem; }
/* fonctions relatives au zoom */ /* fonctions relatives au zoom */
int GetZoom( void ); /* retourne le coeff de zoom */ int GetZoom( void ); /* retourne le coeff de zoom */