build fix

parent db25d8ce
......@@ -261,14 +261,6 @@ PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent) :
setup(item);
}
PlaylistItem::PlaylistItem(CollectionListItem *item, Playlist *parent, Q3ListViewItem *after) :
d(0),
m_watched(0),
m_playlist(parent)
{
setup(item);
}
// This constructor should only be used by the CollectionList subclass.
......
......@@ -155,7 +155,6 @@ protected:
* subclass or friend class.
*/
PlaylistItem(CollectionListItem *item, Playlist *parent);
PlaylistItem(CollectionListItem *item, Playlist *parent, Q3ListViewItem *after);
/**
* This is the constructor that shold be used by subclasses.
......
......@@ -84,7 +84,7 @@ void HistoryPlaylist::slotCreateNewItem()
////////////////////////////////////////////////////////////////////////////////
HistoryPlaylistItem::HistoryPlaylistItem(CollectionListItem *item, Playlist *parent, Q3ListViewItem *after) :
PlaylistItem(item, parent, after),
PlaylistItem(item, parent),
m_dateTime(QDateTime::currentDateTime())
{
setText(0, KGlobal::locale()->formatDateTime(m_dateTime));
......
......@@ -1923,7 +1923,7 @@ void Playlist::addFileHelper(FileHandleList &files, PlaylistItem **after, bool i
time.restart();
foreach(const FileHandle &fileHandle, files)
*after = createItem(fileHandle, after, false);
*after = createItem(fileHandle, *after, false);
files.clear();
......
......@@ -714,7 +714,7 @@ ItemType *Playlist::createItem(const FileHandle &file, ItemType *after,
CollectionListItem *item = collectionListItem(file);
if(item && (!m_members.insert(file.absFilePath()) || m_allowDuplicates)) {
ItemType *i = after ? new ItemType(item, this) : new ItemType(item, this);
ItemType *i = new ItemType(item, this);
setupItem(i);
m_items.insert(m_items.indexOf(after), i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment