diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-18 10:23:25 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-18 11:47:16 +0100 |
commit | 06ff3f82d50b81c9bfda576b3199edf21dbf1efd (patch) | |
tree | 6ad44159f2fee2d87c039b3653b91d2fb61889a7 | |
parent | 3af8a4faf5e20ccae2386052697713da160afb16 (diff) |
Remove redundant check
Change-Id: If925aef0109a023d5760a7f83ab570a1f0312cb6
Reviewed-on: https://gerrit.libreoffice.org/44903
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
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; |