[Libreoffice-commits] .: svtools/inc svtools/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Oct 30 13:33:04 PDT 2012


 svtools/inc/svtools/treelist.hxx   |    2 --
 svtools/source/contnr/treelist.cxx |   35 +----------------------------------
 2 files changed, 1 insertion(+), 36 deletions(-)

New commits:
commit 036f86db553494c781f58cbb5cbb567774217ec4
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Tue Oct 30 16:32:33 2012 -0400

    Apparently CheckIntegrity() was only declared but never defined.
    
    Let's remove it.
    
    Change-Id: Idbc6c58fb6ce71c80534396111c4d5b17a9764c7

diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx
index b971a64..9b96506 100644
--- a/svtools/inc/svtools/treelist.hxx
+++ b/svtools/inc/svtools/treelist.hxx
@@ -297,8 +297,6 @@ public:
     void                SetCompareHdl( const Link& rLink ) { aCompareLink = rLink; }
     const Link&         GetCompareHdl() const { return aCompareLink; }
     void                Resort();
-
-    void                CheckIntegrity() const;
 };
 
 class SVT_DLLPUBLIC SvListView
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx
index f3bf0bc..2ec20bd 100644
--- a/svtools/source/contnr/treelist.cxx
+++ b/svtools/source/contnr/treelist.cxx
@@ -322,10 +322,6 @@ sal_uLong SvTreeList::Move(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa
     if (!bSameParent)
         SetListPositions(rSrc);
 
-#ifdef CHECK_INTEGRITY
-    CheckIntegrity();
-#endif
-
     sal_uLong nRetVal = findEntryPosition(rDst, pSrcEntry);
     OSL_ENSURE(nRetVal == pSrcEntry->GetChildListPos(), "ListPos not valid");
     Broadcast( LISTACTION_MOVED,pSrcEntry,pTargetParent,nRetVal);
@@ -360,9 +356,6 @@ sal_uLong SvTreeList::Copy(SvTreeListEntry* pSrcEntry,SvTreeListEntry* pTargetPa
 
     SetListPositions(rDst); // correct list position in target list
 
-#ifdef CHECK_INTEGRITY
-    CheckIntegrity();
-#endif
     Broadcast( LISTACTION_INSERTED_TREE, pClonedEntry );
     sal_uLong nRetVal = findEntryPosition(rDst, pClonedEntry);
     return nRetVal;
@@ -426,9 +419,6 @@ void SvTreeList::InsertTree(SvTreeListEntry* pSrcEntry,
     nEntryCount += GetChildCount( pSrcEntry );
     nEntryCount++; // the parent is new, too
 
-#ifdef CHECK_INTEGRITY
-CheckIntegrity();
-#endif
     Broadcast(LISTACTION_INSERTED_TREE, pSrcEntry );
 }
 
@@ -1100,9 +1090,6 @@ sal_uLong SvTreeList::Insert( SvTreeListEntry* pEntry,SvTreeListEntry* pParent,s
     else
         pEntry->nListPos = rList.size()-1;
 
-#ifdef CHECK_INTEGRITY
-    CheckIntegrity();
-#endif
     Broadcast( LISTACTION_INSERTED, pEntry );
     return nPos; // pEntry->nListPos;
 }
@@ -1136,10 +1123,7 @@ void SvTreeList::SetAbsolutePositions()
         nPos++;
         pEntry = Next( pEntry );
     }
-    bAbsPositionsValid = sal_True;
-#ifdef CHECK_INTEGRITY
-CheckIntegrity();
-#endif
+    bAbsPositionsValid = true;
 }
 
 
@@ -1166,9 +1150,6 @@ void SvTreeList::Expand( SvListView* pView, SvTreeListEntry* pEntry )
         pView->bVisPositionsValid = sal_False;
         pView->nVisibleCount = 0;
     }
-#ifdef CHECK_INTEGRITY
-CheckIntegrity();
-#endif
 }
 
 /*************************************************************************
@@ -1194,9 +1175,6 @@ void SvTreeList::Collapse( SvListView* pView, SvTreeListEntry* pEntry )
         pView->nVisibleCount = 0;
         pView->bVisPositionsValid = sal_False;
     }
-#ifdef CHECK_INTEGRITY
-CheckIntegrity();
-#endif
 }
 
 
@@ -1230,9 +1208,6 @@ sal_Bool SvTreeList::Select( SvListView* pView, SvTreeListEntry* pEntry, sal_Boo
             pView->nSelectionCount--;
         }
     }
-#ifdef CHECK_INTEGRITY
-    CheckIntegrity();
-#endif
     return sal_True;
 }
 
@@ -1281,11 +1256,6 @@ bool SvTreeList::Remove( const SvTreeListEntry* pEntry )
         SetListPositions(rList);
 
     nEntryCount -= nRemoved;
-
-#ifdef CHECK_INTEGRITY
-    CheckIntegrity();
-#endif
-
     return true;
 }
 
@@ -1313,9 +1283,6 @@ void SvTreeList::SelectAll( SvListView* pView, sal_Bool bSelect )
         pView->nSelectionCount = nEntryCount;
     else
         pView->nSelectionCount = 0;
-#ifdef CHECK_INTEGRITY
-CheckIntegrity();
-#endif
 }
 
 


More information about the Libreoffice-commits mailing list