diff options
Diffstat (limited to 'qt5/src/poppler-optcontent.cc')
-rw-r--r-- | qt5/src/poppler-optcontent.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt5/src/poppler-optcontent.cc b/qt5/src/poppler-optcontent.cc index d64d2452..177fbe04 100644 --- a/qt5/src/poppler-optcontent.cc +++ b/qt5/src/poppler-optcontent.cc @@ -403,9 +403,9 @@ namespace Poppler 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)); + const std::vector<Ref> *refsList = stateList->list; + for (const Ref& ref : *refsList) { + OptContentItem *item = d->itemFromRef(QString::number(ref.num)); if (stateList->st == ::LinkOCGState::On) { item->setState(OptContentItem::On, popplerLinkOCGState->getPreserveRB(), changedItems); |