diff options
Diffstat (limited to 'qt5/src/poppler-optcontent.cc')
-rw-r--r-- | qt5/src/poppler-optcontent.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt5/src/poppler-optcontent.cc b/qt5/src/poppler-optcontent.cc index 1a659bf6..d64d2452 100644 --- a/qt5/src/poppler-optcontent.cc +++ b/qt5/src/poppler-optcontent.cc @@ -401,8 +401,8 @@ namespace Poppler QSet<OptContentItem *> changedItems; - const std::vector<::LinkOCGState::StateList*> *statesList = popplerLinkOCGState->getStateList(); - for (const ::LinkOCGState::StateList *stateList : *statesList) { + const std::vector<::LinkOCGState::StateList*>& statesList = popplerLinkOCGState->getStateList(); + for (const ::LinkOCGState::StateList *stateList : statesList) { const std::vector<Ref*> *refsList = stateList->list; for (const Ref *ref : *refsList) { OptContentItem *item = d->itemFromRef(QString::number(ref->num)); |