Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


hi,

this removes unread variable pTargetPage from
./impress/sd/source/core/drawdoc2.cxx<http://libreoffice.boldandbusted.com/368.html>

-- Kenneth
From 790ae5ce71d14ce6100fc97d81b24f960e8323d5 Mon Sep 17 00:00:00 2001
From: Kenneth Venken <kenneth.venken@gmail.com>
Date: Sun, 30 Jan 2011 01:05:55 +0100
Subject: [PATCH] unread variable

---
 sd/source/core/drawdoc2.cxx |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx
index 8df46ac..bbb2ecb 100644
--- a/sd/source/core/drawdoc2.cxx
+++ b/sd/source/core/drawdoc2.cxx
@@ -775,7 +775,6 @@ BOOL SdDrawDocument::CreateMissingNotesAndHandoutPages()
 
 BOOL SdDrawDocument::MovePages(USHORT nTargetPage)
 {
-    SdPage* pTargetPage           = NULL;
     SdPage* pPage                         = NULL;
     USHORT     nPage;
     USHORT     nNoOfPages                 = GetSdPageCount(PK_STANDARD);
@@ -840,7 +839,6 @@ BOOL SdDrawDocument::MovePages(USHORT nTargetPage)
     // hinter <nPage> einfuegen
     else
     {
-        pTargetPage = GetSdPage(nPage, PK_STANDARD);
         nTargetPage = nPage;
         nTargetPage = 2 * nTargetPage + 1;       // PK_STANDARD --> absolut
         while (aPageList.Count() > 0)
-- 
1.7.1


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.