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

View File

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