aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/streambrowser
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
commitb917024aa1ac4cb0a40164132db3c6d2913157eb (patch)
tree4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/plugins/General/streambrowser
parentbef5a901922c002815d047d276e61ec0bf8c0f46 (diff)
downloadqmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.gz
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.bz2
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.zip
fixed build with -Werror=zero-as-null-pointer-constant
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8572 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/streambrowser')
-rw-r--r--src/plugins/General/streambrowser/editstreamdialog.h2
-rw-r--r--src/plugins/General/streambrowser/streambrowser.h2
-rw-r--r--src/plugins/General/streambrowser/streambrowserfactory.cpp2
-rw-r--r--src/plugins/General/streambrowser/streamwindow.cpp6
-rw-r--r--src/plugins/General/streambrowser/streamwindow.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/General/streambrowser/editstreamdialog.h b/src/plugins/General/streambrowser/editstreamdialog.h
index a0e24ce3a..4f6ddc500 100644
--- a/src/plugins/General/streambrowser/editstreamdialog.h
+++ b/src/plugins/General/streambrowser/editstreamdialog.h
@@ -33,7 +33,7 @@ class EditStreamDialog : public QDialog
Q_OBJECT
public:
- explicit EditStreamDialog(QWidget *parent = 0);
+ explicit EditStreamDialog(QWidget *parent = nullptr);
~EditStreamDialog();
enum Key
diff --git a/src/plugins/General/streambrowser/streambrowser.h b/src/plugins/General/streambrowser/streambrowser.h
index 0f23644d8..7ea50e575 100644
--- a/src/plugins/General/streambrowser/streambrowser.h
+++ b/src/plugins/General/streambrowser/streambrowser.h
@@ -35,7 +35,7 @@ class StreamBrowser : public QObject
{
Q_OBJECT
public:
- StreamBrowser(QObject *parent = 0);
+ StreamBrowser(QObject *parent = nullptr);
~StreamBrowser();
diff --git a/src/plugins/General/streambrowser/streambrowserfactory.cpp b/src/plugins/General/streambrowser/streambrowserfactory.cpp
index 655a7adfb..4b2fc70c3 100644
--- a/src/plugins/General/streambrowser/streambrowserfactory.cpp
+++ b/src/plugins/General/streambrowser/streambrowserfactory.cpp
@@ -42,7 +42,7 @@ QObject *StreamBrowserFactory::create(QObject *parent)
QDialog *StreamBrowserFactory::createConfigDialog(QWidget *parent)
{
Q_UNUSED(parent);
- return 0;
+ return nullptr;
}
void StreamBrowserFactory::showAbout(QWidget *parent)
diff --git a/src/plugins/General/streambrowser/streamwindow.cpp b/src/plugins/General/streambrowser/streamwindow.cpp
index 6bf73f6d4..e5dadd958 100644
--- a/src/plugins/General/streambrowser/streamwindow.cpp
+++ b/src/plugins/General/streambrowser/streamwindow.cpp
@@ -47,7 +47,7 @@ StreamWindow::StreamWindow(QWidget *parent)
setWindowFlags(Qt::Window);
setAttribute(Qt::WA_DeleteOnClose);
setAttribute(Qt::WA_QuitOnClose, false);
- m_requestReply = 0;
+ m_requestReply = nullptr;
//buttons
m_ui->addPushButton->setIcon(QIcon::fromTheme("list-add"));
m_ui->updatePushButton->setIcon(QIcon::fromTheme("view-refresh"));
@@ -153,13 +153,13 @@ void StreamWindow::showText(QNetworkReply *reply)
{
m_ui->statusLabel->setText(tr("Error"));
QMessageBox::warning (this, tr("Error"), reply->errorString());
- m_requestReply = 0;
+ m_requestReply = nullptr;
reply->deleteLater();
return;
}
if(m_requestReply == reply)
{
- m_requestReply = 0;
+ m_requestReply = nullptr;
readXml(reply, m_iceCastModel);
}
reply->deleteLater();
diff --git a/src/plugins/General/streambrowser/streamwindow.h b/src/plugins/General/streambrowser/streamwindow.h
index c36c54b69..58512c9c1 100644
--- a/src/plugins/General/streambrowser/streamwindow.h
+++ b/src/plugins/General/streambrowser/streamwindow.h
@@ -42,7 +42,7 @@ class StreamWindow : public QWidget
{
Q_OBJECT
public:
- StreamWindow(QWidget *parent = 0);
+ StreamWindow(QWidget *parent = nullptr);
~StreamWindow();