diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2019-01-03 07:41:04 +0000 |
| commit | b917024aa1ac4cb0a40164132db3c6d2913157eb (patch) | |
| tree | 4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/qmmpui/qmmpuiplugincache.cpp | |
| parent | bef5a901922c002815d047d276e61ec0bf8c0f46 (diff) | |
| download | qmmp-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/qmmpui/qmmpuiplugincache.cpp')
| -rw-r--r-- | src/qmmpui/qmmpuiplugincache.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qmmpui/qmmpuiplugincache.cpp b/src/qmmpui/qmmpuiplugincache.cpp index ed739168d..126dcb650 100644 --- a/src/qmmpui/qmmpuiplugincache.cpp +++ b/src/qmmpui/qmmpuiplugincache.cpp @@ -33,10 +33,10 @@ QmmpUiPluginCache::QmmpUiPluginCache(const QString &file, QSettings *settings) { m_error = false; - m_instance = 0; - m_generalFactory = 0; - m_uiFactory = 0; - m_fileDialogFactory = 0; + m_instance = nullptr; + m_generalFactory = nullptr; + m_uiFactory = nullptr; + m_fileDialogFactory = nullptr; m_priority = 0; bool update = false; QFileInfo info(file); @@ -105,9 +105,9 @@ QmmpUiPluginCache::QmmpUiPluginCache(QObject *instance) { m_error = false; m_instance = instance; - m_generalFactory = 0; - m_uiFactory = 0; - m_fileDialogFactory = 0; + m_generalFactory = nullptr; + m_uiFactory = nullptr; + m_fileDialogFactory = nullptr; m_priority = 0; if(GeneralFactory *factory = generalFactory()) @@ -190,7 +190,7 @@ FileDialogFactory *QmmpUiPluginCache::fileDialogFactory() QObject *QmmpUiPluginCache::instance() { if(m_error) - return 0; + return nullptr; if(m_instance) return m_instance; QPluginLoader loader(m_path); |
