const
This commit is contained in:
@@ -360,7 +360,7 @@ ScreenOptions::~ScreenOptions()
|
||||
|
||||
CString ScreenOptions::GetExplanationText( int iRow ) const
|
||||
{
|
||||
OptionRow &row = *m_pRows[iRow];
|
||||
const OptionRow &row = *m_pRows[iRow];
|
||||
|
||||
bool bAllowExplanation = row.GetRowDef().m_bAllowExplanation;
|
||||
bool bShowExplanations = bAllowExplanation && SHOW_EXPLANATIONS.GetValue();
|
||||
@@ -375,10 +375,10 @@ CString ScreenOptions::GetExplanationText( int iRow ) const
|
||||
return OPTION_EXPLANATION(sExplanationName);
|
||||
}
|
||||
|
||||
void ScreenOptions::GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut )
|
||||
void ScreenOptions::GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut ) const
|
||||
{
|
||||
ASSERT_M( iRow < (int)m_pRows.size(), ssprintf("%i < %i", iRow, (int)m_pRows.size() ) );
|
||||
OptionRow &row = *m_pRows[iRow];
|
||||
const OptionRow &row = *m_pRows[iRow];
|
||||
row.GetWidthXY( pn, iChoiceOnRow, iWidthOut, iXOut, iYOut );
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ protected:
|
||||
virtual void ImportOptions( int iRow, const vector<PlayerNumber> &vpns ) = 0;
|
||||
virtual void ExportOptions( int iRow, const vector<PlayerNumber> &vpns ) = 0;
|
||||
|
||||
void GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut );
|
||||
void GetWidthXY( PlayerNumber pn, int iRow, int iChoiceOnRow, int &iWidthOut, int &iXOut, int &iYOut ) const;
|
||||
CString GetExplanationText( int iRow ) const;
|
||||
void PositionUnderlines( int iRow, PlayerNumber pn );
|
||||
void PositionAllUnderlines();
|
||||
|
||||
Reference in New Issue
Block a user