Commit b0008246 authored by Michael Pyne's avatar Michael Pyne

More krazy fixes for JuK. Although we've not yet been burned by non-explicit ctors

with JuK there's no reason not to add the keywords either.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=666132
parent 39362579
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
QString playlistName; QString playlistName;
}; };
AdvancedSearchDialog(const QString &defaultName, explicit AdvancedSearchDialog(const QString &defaultName,
const PlaylistSearch &defaultSearch = PlaylistSearch(), const PlaylistSearch &defaultSearch = PlaylistSearch(),
QWidget *parent = 0, QWidget *parent = 0,
const char *name = 0); const char *name = 0);
......
...@@ -50,7 +50,7 @@ using CoverUtility::CoverIconViewItem; ...@@ -50,7 +50,7 @@ using CoverUtility::CoverIconViewItem;
class CoverIconView : public K3IconView class CoverIconView : public K3IconView
{ {
public: public:
CoverIconView(QWidget *parent, const char *name = 0); explicit CoverIconView(QWidget *parent, const char *name = 0);
CoverIconViewItem *currentItem() const; CoverIconViewItem *currentItem() const;
......
...@@ -32,7 +32,7 @@ class DeleteWidget : public QWidget, public Ui::DeleteDialogBase ...@@ -32,7 +32,7 @@ class DeleteWidget : public QWidget, public Ui::DeleteDialogBase
Q_OBJECT Q_OBJECT
public: public:
DeleteWidget(QWidget *parent = 0, const char *name = 0); explicit DeleteWidget(QWidget *parent = 0, const char *name = 0);
void setFiles(const QStringList &files); void setFiles(const QStringList &files);
...@@ -45,7 +45,7 @@ class DeleteDialog : public KDialog ...@@ -45,7 +45,7 @@ class DeleteDialog : public KDialog
Q_OBJECT Q_OBJECT
public: public:
DeleteDialog(QWidget *parent, const char *name = "delete_dialog"); explicit DeleteDialog(QWidget *parent, const char *name = "delete_dialog");
bool confirmDeleteList(const QStringList &condemnedFiles); bool confirmDeleteList(const QStringList &condemnedFiles);
void setFiles(const QStringList &files); void setFiles(const QStringList &files);
......
...@@ -22,7 +22,7 @@ class FolderPlaylist : public Playlist ...@@ -22,7 +22,7 @@ class FolderPlaylist : public Playlist
Q_OBJECT Q_OBJECT
public: public:
FolderPlaylist(PlaylistCollection *collection, const QString &folder = QString::null, explicit FolderPlaylist(PlaylistCollection *collection, const QString &folder = QString::null,
const QString &name = QString::null); const QString &name = QString::null);
virtual ~FolderPlaylist(); virtual ~FolderPlaylist();
......
...@@ -34,7 +34,7 @@ class KUrl; ...@@ -34,7 +34,7 @@ class KUrl;
class GoogleImage class GoogleImage
{ {
public: public:
GoogleImage(QString thumbURL = QString::null, QString size = QString::null); explicit GoogleImage(QString thumbURL = QString::null, QString size = QString::null);
QString imageURL() const { return m_imageURL; } QString imageURL() const { return m_imageURL; }
QString thumbURL() const { return m_thumbURL; } QString thumbURL() const { return m_thumbURL; }
......
...@@ -32,7 +32,7 @@ public: ...@@ -32,7 +32,7 @@ public:
/** /**
* Constructs a KeyDialog called @p name as a child of @p parent. * Constructs a KeyDialog called @p name as a child of @p parent.
*/ */
KeyDialog(KActionCollection *actionCollection, QWidget *parent = 0); explicit KeyDialog(KActionCollection *actionCollection, QWidget *parent = 0);
/** /**
* Destructor. Deletes all resources used by a KeyDialog object. * Destructor. Deletes all resources used by a KeyDialog object.
......
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
* Creates and starts a lookup for \a file. If \a autoDelete is set to * Creates and starts a lookup for \a file. If \a autoDelete is set to
* true the lookup will delete itself when it has finished. * true the lookup will delete itself when it has finished.
*/ */
KTRMLookup(const QString &file, bool autoDelete = false); explicit KTRMLookup(const QString &file, bool autoDelete = false);
virtual ~KTRMLookup(); virtual ~KTRMLookup();
......
...@@ -62,7 +62,7 @@ class Playlist : public K3ListView, public PlaylistInterface ...@@ -62,7 +62,7 @@ class Playlist : public K3ListView, public PlaylistInterface
public: public:
Playlist(PlaylistCollection *collection, const QString &name = QString::null, explicit Playlist(PlaylistCollection *collection, const QString &name = QString::null,
const QString &iconName = "midi"); const QString &iconName = "midi");
Playlist(PlaylistCollection *collection, const PlaylistItemList &items, Playlist(PlaylistCollection *collection, const PlaylistItemList &items,
const QString &name = QString::null, const QString &iconName = "midi"); const QString &name = QString::null, const QString &iconName = "midi");
......
...@@ -46,7 +46,7 @@ class PlaylistSplitter : public QSplitter ...@@ -46,7 +46,7 @@ class PlaylistSplitter : public QSplitter
Q_OBJECT Q_OBJECT
public: public:
PlaylistSplitter(QWidget *parent, const char *name = 0); explicit PlaylistSplitter(QWidget *parent, const char *name = 0);
virtual ~PlaylistSplitter(); virtual ~PlaylistSplitter();
PlaylistInterface *playlist() const { return m_playlistBox; } PlaylistInterface *playlist() const { return m_playlistBox; }
......
...@@ -22,7 +22,7 @@ class SearchPlaylist : public DynamicPlaylist ...@@ -22,7 +22,7 @@ class SearchPlaylist : public DynamicPlaylist
{ {
Q_OBJECT Q_OBJECT
public: public:
SearchPlaylist(PlaylistCollection *collection, explicit SearchPlaylist(PlaylistCollection *collection,
const PlaylistSearch &search = PlaylistSearch(), const PlaylistSearch &search = PlaylistSearch(),
const QString &name = QString::null, const QString &name = QString::null,
bool setupPlaylist = true, bool setupPlaylist = true,
......
...@@ -41,7 +41,7 @@ class SearchLine : public Q3HBox ...@@ -41,7 +41,7 @@ class SearchLine : public Q3HBox
public: public:
enum Mode { Default = 0, CaseSensitive = 1, Pattern = 2 }; enum Mode { Default = 0, CaseSensitive = 1, Pattern = 2 };
SearchLine(QWidget *parent, bool simple = false, const char *name = 0); explicit SearchLine(QWidget *parent, bool simple = false, const char *name = 0);
virtual ~SearchLine() {} virtual ~SearchLine() {}
PlaylistSearch::Component searchComponent() const; PlaylistSearch::Component searchComponent() const;
...@@ -76,7 +76,7 @@ class SearchWidget : public KToolBar ...@@ -76,7 +76,7 @@ class SearchWidget : public KToolBar
Q_OBJECT Q_OBJECT
public: public:
SearchWidget(QWidget *parent, const char *name = 0); explicit SearchWidget(QWidget *parent, const char *name = 0);
virtual ~SearchWidget(); virtual ~SearchWidget();
PlaylistSearch search(const PlaylistList &playlists) const; PlaylistSearch search(const PlaylistList &playlists) const;
......
...@@ -33,7 +33,7 @@ class StatusLabel : public KHBox, public PlaylistObserver ...@@ -33,7 +33,7 @@ class StatusLabel : public KHBox, public PlaylistObserver
Q_OBJECT Q_OBJECT
public: public:
StatusLabel(PlaylistInterface *playlist, QWidget *parent = 0); explicit StatusLabel(PlaylistInterface *playlist, QWidget *parent = 0);
virtual ~StatusLabel(); virtual ~StatusLabel();
virtual void updateCurrent(); virtual void updateCurrent();
......
...@@ -27,7 +27,7 @@ class TagGuesserConfigDlg : public KDialog ...@@ -27,7 +27,7 @@ class TagGuesserConfigDlg : public KDialog
{ {
Q_OBJECT Q_OBJECT
public: public:
TagGuesserConfigDlg(QWidget *parent, const char *name = 0); explicit TagGuesserConfigDlg(QWidget *parent, const char *name = 0);
protected slots: protected slots:
virtual void accept(); virtual void accept();
......
...@@ -26,7 +26,7 @@ class TreeViewItemPlaylist : public SearchPlaylist ...@@ -26,7 +26,7 @@ class TreeViewItemPlaylist : public SearchPlaylist
Q_OBJECT Q_OBJECT
public: public:
TreeViewItemPlaylist(PlaylistCollection *collection, explicit TreeViewItemPlaylist(PlaylistCollection *collection,
const PlaylistSearch &search = PlaylistSearch(), const PlaylistSearch &search = PlaylistSearch(),
const QString &name = QString::null); const QString &name = QString::null);
......
...@@ -52,7 +52,7 @@ public: ...@@ -52,7 +52,7 @@ public:
* @param collection The PlaylistCollection that owns this playlist. * @param collection The PlaylistCollection that owns this playlist.
* @param defaultSize The default number of tracks to place in the playlist. * @param defaultSize The default number of tracks to place in the playlist.
*/ */
UpcomingPlaylist(PlaylistCollection *collection, int defaultSize = 15); explicit UpcomingPlaylist(PlaylistCollection *collection, int defaultSize = 15);
/** /**
* Destructor for the UpcomingPlaylist. This destructor will restore the * Destructor for the UpcomingPlaylist. This destructor will restore the
* iterator for the TrackSequenceManager, and if a song is playing when * iterator for the TrackSequenceManager, and if a song is playing when
......
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