[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kofficecore
From: Thomas Zander <zander () kde ! org>
Date: 2007-03-10 19:27:55
Message-ID: 1173554875.486296.20523.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 641281 by zander:
Add clear()
Don't use qWarning. And don't be so verbose anyway :)
M +6 -1 KoRTree.h
--- trunk/koffice/libs/kofficecore/KoRTree.h #641280:641281
@@ -117,6 +117,11 @@
*/
QList<T> values() const;
+ void clear() {
+ delete m_root;
+ m_root = createLeafNode( m_capacity + 1, 0, 0 );
+ }
+
#ifdef KOFFICE_RTREE_DEBUG
/**
* @brief Paint the tree
@@ -387,7 +392,7 @@
LeafNode * leaf = m_leafMap[data];
if ( leaf == 0 )
{
- qWarning( "KoRTree<T>::remove( const T&data) data not found" );
+ //qWarning( "KoRTree<T>::remove( const T&data) data not found" );
return;
}
m_leafMap.remove(data);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic