Mercurial > hg > svgui
diff widgets/ImageDialog.cpp @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | c8a6fd3f9dff |
children |
line wrap: on
line diff
--- a/widgets/ImageDialog.cpp Wed Jan 09 14:41:52 2019 +0000 +++ b/widgets/ImageDialog.cpp Wed Jan 09 15:24:51 2019 +0000 @@ -38,8 +38,8 @@ QString label, QWidget *parent) : QDialog(parent), - m_imagePreview(0), - m_remoteFile(0) + m_imagePreview(nullptr), + m_remoteFile(nullptr) { setWindowTitle(title); @@ -179,7 +179,7 @@ QString fileName = img; delete m_remoteFile; - m_remoteFile = 0; + m_remoteFile = nullptr; if (FileSource::isRemote(fileName)) { QUrl url(fileName); @@ -197,7 +197,7 @@ tr("Failed to download URL \"%1\": %2") .arg(url.toString()).arg(m_remoteFile->getErrorString())); delete m_remoteFile; - m_remoteFile = 0; + m_remoteFile = nullptr; } else { fileName = m_remoteFile->getLocalFilename(); }