fixed qt4 compilation

This commit is contained in:
csoler 2016-03-16 23:03:46 -04:00
parent 31356bab96
commit a2a9079380

View File

@ -293,9 +293,9 @@ PictureFlowState::PictureFlowState():
PictureFlowState::~PictureFlowState() PictureFlowState::~PictureFlowState()
{ {
while (! slideImages.isEmpty()) { for(uint i=0;i<slideImages.size();++i)
delete slideImages.takeFirst(); delete slideImages[i] ;
} slideImages.clear() ;
} }
// readjust the settings, call this when slide dimension is changed // readjust the settings, call this when slide dimension is changed
@ -1104,9 +1104,9 @@ void PictureFlow::setCenterIndex(int index)
void PictureFlow::clear() void PictureFlow::clear()
{ {
while (! d->state->slideImages.isEmpty()) { for(uint i=0;i<d->state->slideImages.size();++i)
delete d->state->slideImages.takeFirst(); delete d->state->slideImages[i] ;
} d->state->slideImages.clear() ;
d->state->reset(); d->state->reset();
triggerRender(); triggerRender();