Add the missing access method FListBoxItem::getData()

This commit is contained in:
Markus Gans 2017-02-24 23:16:05 +01:00
parent 7c11ba1707
commit 784afc5a07
2 changed files with 14 additions and 8 deletions

View File

@ -56,8 +56,10 @@ class FListBoxItem
// Accessors
virtual FString getText() const;
virtual FWidget::data_ptr getData() const;
protected:
// Mutators
void setText (FString&);
void setText (const std::string&);
void setText (const char*);
@ -81,6 +83,10 @@ class FListBoxItem
inline FString FListBoxItem::getText() const
{ return text; }
//----------------------------------------------------------------------
inline FWidget::data_ptr FListBoxItem::getData() const
{ return data_pointer; }
//----------------------------------------------------------------------
inline void FListBoxItem::setText (FString& txt)
{ text = txt; }

View File

@ -1069,21 +1069,21 @@ void FVTerm::updateVTerm()
}
else if ( ! win->preprocessing_call.empty() )
{
FPreprocessing::const_iterator iter, end;
iter = win->preprocessing_call.begin();
end = win->preprocessing_call.end();
FPreprocessing::const_iterator iter2, end2;
iter2 = win->preprocessing_call.begin();
end2 = win->preprocessing_call.end();
while ( iter != end )
while ( iter2 != end2 )
{
if ( iter->instance->child_print_area
&& iter->instance->child_print_area->has_changes )
if ( iter2->instance->child_print_area
&& iter2->instance->child_print_area->has_changes )
{
updateVTerm(win);
iter->instance->child_print_area->has_changes = false;
iter2->instance->child_print_area->has_changes = false;
break;
}
++iter;
++iter2;
}
}
}