[Libreoffice-commits] core.git: sd/source
Michael Stahl
mstahl at redhat.com
Wed Aug 13 14:17:17 PDT 2014
sd/source/core/PageListWatcher.cxx | 3 ---
sd/source/core/PageListWatcher.hxx | 1 -
2 files changed, 4 deletions(-)
New commits:
commit 6ec885c9ff4f074f7b163c314cebda1da32d7057
Author: Michael Stahl <mstahl at redhat.com>
Date: Wed Aug 13 23:09:39 2014 +0200
warning C4245 signed/unsigned mismatch
Turns out that mnVisiblePageCount is actually never read.
Change-Id: I6bded733bb551525a6143976ad4c4447a5a56773
diff --git a/sd/source/core/PageListWatcher.cxx b/sd/source/core/PageListWatcher.cxx
index 590f8ed..77b7da9 100644
--- a/sd/source/core/PageListWatcher.cxx
+++ b/sd/source/core/PageListWatcher.cxx
@@ -29,7 +29,6 @@ void ImpPageListWatcher::ImpRecreateSortedPageListOnDemand()
maPageVectorStandard.clear();
maPageVectorNotes.clear();
mpHandoutPage = 0L;
- mnVisiblePageCount = -1;
// build up vectors again
const sal_uInt32 nPageCount(ImpGetPageCount());
@@ -44,7 +43,6 @@ void ImpPageListWatcher::ImpRecreateSortedPageListOnDemand()
case PK_STANDARD:
{
maPageVectorStandard.push_back(pCandidate);
- if (!pCandidate->IsExcluded()) mnVisiblePageCount++;
break;
}
case PK_NOTES:
@@ -69,7 +67,6 @@ ImpPageListWatcher::ImpPageListWatcher(const SdrModel& rModel)
: mrModel(rModel)
, mpHandoutPage(0L)
, mbPageListValid(false)
- , mnVisiblePageCount(0)
{
}
diff --git a/sd/source/core/PageListWatcher.hxx b/sd/source/core/PageListWatcher.hxx
index 26b3a96..9158078 100644
--- a/sd/source/core/PageListWatcher.hxx
+++ b/sd/source/core/PageListWatcher.hxx
@@ -43,7 +43,6 @@ protected:
SdPage* mpHandoutPage;
bool mbPageListValid;
- sal_uInt32 mnVisiblePageCount;
void ImpRecreateSortedPageListOnDemand();
virtual sal_uInt32 ImpGetPageCount() const = 0;
More information about the Libreoffice-commits
mailing list