diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-12-03 22:15:10 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2017-12-04 07:09:12 +0100 |
commit | 9634a818e8a9432db52bc8fcd534e7437e6bacee (patch) | |
tree | 40f5e2e10deff130d7975a1b0b427376865a502f /sw/source/uibase/uno | |
parent | 8444bf1d7314f7ff2ea4d17da19b4d276c4086ae (diff) |
Replace list by vector for mvPostItFields (sw)
Change-Id: I22009cd051a990cbc6e5f67a01958da889437840
Reviewed-on: https://gerrit.libreoffice.org/45759
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index a6431a67975f..7a734e61112a 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3266,10 +3266,9 @@ OUString SwXTextDocument::getPostIts() { SolarMutexGuard aGuard; boost::property_tree::ptree aAnnotations; - for (std::list<SwSidebarItem*>::const_iterator i = pDocShell->GetView()->GetPostItMgr()->begin(); - i != pDocShell->GetView()->GetPostItMgr()->end(); ++i ) + for (auto const& sidebarItem : *pDocShell->GetView()->GetPostItMgr()) { - sw::annotation::SwAnnotationWin* pWin = (*i)->pPostIt.get(); + sw::annotation::SwAnnotationWin* pWin = sidebarItem->pPostIt.get(); const SwPostItField* pField = pWin->GetPostItField(); const SwRect& aRect = pWin->GetAnchorRect(); |