[Libreoffice-commits] .: sw/source

August Sodora augsod at kemper.freedesktop.org
Fri Jan 13 20:16:58 PST 2012


 sw/source/core/doc/doctxm.cxx |    6 +-----
 sw/source/core/inc/doctxm.hxx |    3 ---
 2 files changed, 1 insertion(+), 8 deletions(-)

New commits:
commit fdb6e4171c7ab9620b739e1a1c3cbba51ba81544
Author: August Sodora <augsod at gmail.com>
Date:   Fri Jan 13 23:14:30 2012 -0500

    Remove unused member variable

diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 4471457..010e3a8 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -963,14 +963,11 @@ sNm.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "_Head" ));
 
     // sortierte Liste aller Verzeichnismarken und Verzeichnisbereiche
     void* p = 0;
-    String* pStr = 0;
     sal_uInt16 nCnt = 0, nFormMax = GetTOXForm().GetFormMax();
-    SvStringsDtor aStrArr( (sal_uInt8)nFormMax );
     SvPtrarr aCollArr( (sal_uInt8)nFormMax );
     for( ; nCnt < nFormMax; ++nCnt )
     {
         aCollArr.Insert( p, nCnt );
-        aStrArr.Insert( pStr, nCnt );
     }
 
     SwNodeIndex aInsPos( *pFirstEmptyNd, 1 );
@@ -1015,7 +1012,7 @@ sNm.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "_Head" ));
         }
         // pass node index of table-of-content section and default page description
         // to method <GenerateText(..)>.
-        GenerateText( nCnt, nRange, aStrArr, pSectNd->GetIndex(), pDefaultPageDesc );
+        GenerateText( nCnt, nRange, pSectNd->GetIndex(), pDefaultPageDesc );
         nCnt += nRange - 1;
     }
 
@@ -1592,7 +1589,6 @@ String lcl_GetNumString( const SwTOXSortTabBase& rBase, sal_Bool bUsePrefix, sal
 // which page description is used, no appropriate one is found.
 void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx,
                                      sal_uInt16 nCount,
-                                     SvStringsDtor& ,
                                      const sal_uInt32   _nTOXSectNdIdx,
                                      const SwPageDesc*  _pDefaultPageDesc )
 {
diff --git a/sw/source/core/inc/doctxm.hxx b/sw/source/core/inc/doctxm.hxx
index fe0daa1..afcdb2c 100644
--- a/sw/source/core/inc/doctxm.hxx
+++ b/sw/source/core/inc/doctxm.hxx
@@ -28,14 +28,12 @@
 #ifndef _DOCTXM_HXX
 #define _DOCTXM_HXX
 
-
 #include <svl/svarray.hxx>
 #include <tools/gen.hxx>
 #include <tox.hxx>
 #include <section.hxx>
 
 class  SwTOXInternational;
-class  SvStringsDtor;
 class  SvPtrarr;
 class  SwPageDesc;
 class  SwTxtNode;
@@ -76,7 +74,6 @@ class SwTOXBaseSection : public SwTOXBase, public SwSection
     // add parameter <_TOXSectNdIdx> and <_pDefaultPageDesc>
     void GenerateText( sal_uInt16 nArrayIdx,
                        sal_uInt16 nCount,
-                       SvStringsDtor&,
                        const sal_uInt32   _nTOXSectNdIdx,
                        const SwPageDesc*  _pDefaultPageDesc );
 


More information about the Libreoffice-commits mailing list