From a0a906b8911e6145cca8c69681bb4406ed3bfea9 Mon Sep 17 00:00:00 2001
From: Christian Muehlhaeuser <muesli@gmail.com>
Date: Fri, 26 Apr 2013 07:53:52 +0200
Subject: [PATCH] * Can't initialize delegates with NULL parent or proxy.

---
 src/libtomahawk/playlist/GridItemDelegate.h          | 2 +-
 src/libtomahawk/playlist/PlaylistLargeItemDelegate.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libtomahawk/playlist/GridItemDelegate.h b/src/libtomahawk/playlist/GridItemDelegate.h
index 1666769e7..6b48e3a19 100644
--- a/src/libtomahawk/playlist/GridItemDelegate.h
+++ b/src/libtomahawk/playlist/GridItemDelegate.h
@@ -43,7 +43,7 @@ class DLLEXPORT GridItemDelegate : public QStyledItemDelegate
 Q_OBJECT
 
 public:
-    GridItemDelegate( QAbstractItemView* parent = 0, PlayableProxyModel* proxy = 0 );
+    GridItemDelegate( QAbstractItemView* parent, PlayableProxyModel* proxy );
 
     QSize itemSize() const { return m_itemSize; }
     void setItemSize( const QSize& size ) { m_itemSize = size; }
diff --git a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.h b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.h
index a5c24d8e1..2812225c8 100644
--- a/src/libtomahawk/playlist/PlaylistLargeItemDelegate.h
+++ b/src/libtomahawk/playlist/PlaylistLargeItemDelegate.h
@@ -43,10 +43,10 @@ public:
     enum DisplayMode
     { LovedTracks, RecentlyPlayed, LatestAdditions, Inbox };
 
-    PlaylistLargeItemDelegate( DisplayMode mode, TrackView* parent = 0, PlayableProxyModel* proxy = 0 );
+    PlaylistLargeItemDelegate( DisplayMode mode, TrackView* parent, PlayableProxyModel* proxy );
 
     virtual QSize sizeHint( const QStyleOptionViewItem& option, const QModelIndex& index ) const;
-    
+
 protected:
     void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;