sw/source/uibase/docvw/PostItMgr.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
New commits: commit 06ff3f82d50b81c9bfda576b3199edf21dbf1efd Author: Mike Kaganski <[email protected]> Date: Sat Nov 18 10:23:25 2017 +0200 Remove redundant check Change-Id: If925aef0109a023d5760a7f83ab570a1f0312cb6 Reviewed-on: https://gerrit.libreoffice.org/44903 Tested-by: Jenkins <[email protected]> Reviewed-by: Mike Kaganski <[email protected]> diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 145659405482..7a90231b0eef 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -1069,15 +1069,12 @@ void SwPostItMgr::MakeVisible(const SwAnnotationWin* pPostIt ) std::vector<SwPostItPageItem*>::size_type n=0; for (auto const& page : mPages) { - if (page->mList->size()>0) + for (auto const& item : *page->mList) { - for (auto const& item : *page->mList) + if (item->pPostIt==pPostIt) { - if (item->pPostIt==pPostIt) - { - aPage = n+1; - break; - } + aPage = n+1; + break; } } ++n; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
