[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdemultimedia/noatun/modules/splitplaylist
From:       Dirk Mueller <mueller () kde ! org>
Date:       2007-01-25 15:41:48
Message-ID: 1169739708.951279.13568.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 627058 by mueller:

ugh... *shudder*


 M  +4 -5      playlist.cpp  


--- trunk/KDE/kdemultimedia/noatun/modules/splitplaylist/playlist.cpp #627057:627058
@@ -330,21 +330,20 @@
 	// otherwise, the list will get randomized and promptly sorted again
 	mView->setSorting(false);
 	List *lView = mView->listView();
-	// eeeeevil :)
-	QList<void*> list;
+	QList<int> list;
 	QList<Q3ListViewItem*> items;
 	for(int i = 0; i < lView->childCount(); i++)
 	{
-		list.append( (void*) i );
+		list.append( i );
 		items.append( lView->itemAtIndex( i ) );
 	}
 
 	KRandomSequence seq;
-	seq.randomize<void*>( list );
+	seq.randomize<int>( list );
 
 	for(int i = 0; i < lView->childCount(); i++)
 	{
-		items.first()->moveItem(lView->itemAtIndex((int) list.first()));
+		items.first()->moveItem(lView->itemAtIndex(list.first()));
 		items.pop_front();
 		list.pop_front();
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic