From 6ec885c9ff4f074f7b163c314cebda1da32d7057 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 13 Aug 2014 23:09:39 +0200 Subject: warning C4245 signed/unsigned mismatch Turns out that mnVisiblePageCount is actually never read. Change-Id: I6bded733bb551525a6143976ad4c4447a5a56773 --- sd/source/core/PageListWatcher.cxx | 3 --- sd/source/core/PageListWatcher.hxx | 1 - 2 files changed, 4 deletions(-) (limited to 'sd') diff --git a/sd/source/core/PageListWatcher.cxx b/sd/source/core/PageListWatcher.cxx index 590f8ed3993b..77b7da9448c1 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 26b3a96e9d71..9158078c4c72 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; -- cgit