Commit 1d9516c0 authored by dickelbeck's avatar dickelbeck
Browse files

made GetCurItem() inline

parent 5c3b480a
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -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; 
+2 −3
Original line number Diff line number Diff line
@@ -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 */