[Libreoffice-commits] .: sfx2/source

Michael Stahl mst at kemper.freedesktop.org
Fri Jun 8 15:59:44 PDT 2012


 sfx2/source/appl/appdde.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit f859ee7f9b867ab893d2414c2cd35b42b64a5e63
Author: Michael Stahl <mstahl at redhat.com>
Date:   Sat Jun 9 00:58:14 2012 +0200

    sigh... fix const abuse in WNT only code...
    
    Change-Id: Ie6a93e15f4e7342faf232f28df133ff808cbe073

diff --git a/sfx2/source/appl/appdde.cxx b/sfx2/source/appl/appdde.cxx
index 10d5b19..f72e64a 100644
--- a/sfx2/source/appl/appdde.cxx
+++ b/sfx2/source/appl/appdde.cxx
@@ -593,7 +593,7 @@ void SfxApplication::AddDdeTopic( SfxObjectShell* pSh )
         }
     }
 
-    const SfxDdeDocTopic_Impl* pTopic = new SfxDdeDocTopic_Impl( pSh );
+    SfxDdeDocTopic_Impl *const pTopic = new SfxDdeDocTopic_Impl(pSh);
     pAppData_Impl->pDocTopics->push_back(pTopic);
     pAppData_Impl->pDdeService->AddTopic( *pTopic );
 }
@@ -606,10 +606,9 @@ void SfxApplication::RemoveDdeTopic( SfxObjectShell* pSh )
     if( !pAppData_Impl->pDocTopics )
         return;
 
-    SfxDdeDocTopic_Impl* pTopic;
     for (size_t n = pAppData_Impl->pDocTopics->size(); n; )
     {
-        pTopic = (*pAppData_Impl->pDocTopics)[ --n ];
+        SfxDdeDocTopic_Impl *const pTopic = (*pAppData_Impl->pDocTopics)[ --n ];
         if (pTopic->pSh == pSh)
         {
             pAppData_Impl->pDdeService->RemoveTopic( *pTopic );


More information about the Libreoffice-commits mailing list