Mercurial > hg > svcore
comparison rdf/PluginRDFIndexer.cpp @ 1582:70e172e6cc59 fix-static-analysis
Use nullptr throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 14:33:41 +0000 |
parents | 6a7ea3bd0e10 |
children | 5b1b03c1d8d4 |
comparison
equal
deleted
inserted
replaced
1581:ad5f892c0c4d | 1582:70e172e6cc59 |
---|---|
49 using Dataquay::BasicStore; | 49 using Dataquay::BasicStore; |
50 using Dataquay::RDFException; | 50 using Dataquay::RDFException; |
51 using Dataquay::RDFDuplicateImportException; | 51 using Dataquay::RDFDuplicateImportException; |
52 | 52 |
53 PluginRDFIndexer * | 53 PluginRDFIndexer * |
54 PluginRDFIndexer::m_instance = 0; | 54 PluginRDFIndexer::m_instance = nullptr; |
55 | 55 |
56 PluginRDFIndexer * | 56 PluginRDFIndexer * |
57 PluginRDFIndexer::getInstance() | 57 PluginRDFIndexer::getInstance() |
58 { | 58 { |
59 if (!m_instance) m_instance = new PluginRDFIndexer(); | 59 if (!m_instance) m_instance = new PluginRDFIndexer(); |
269 QUrl local = urlString; | 269 QUrl local = urlString; |
270 | 270 |
271 if (FileSource::isRemote(urlString) && | 271 if (FileSource::isRemote(urlString) && |
272 FileSource::canHandleScheme(urlString)) { | 272 FileSource::canHandleScheme(urlString)) { |
273 | 273 |
274 CachedFile cf(urlString, 0, "application/rdf+xml"); | 274 CachedFile cf(urlString, nullptr, "application/rdf+xml"); |
275 if (!cf.isOK()) { | 275 if (!cf.isOK()) { |
276 return false; | 276 return false; |
277 } | 277 } |
278 | 278 |
279 local = QUrl::fromLocalFile(cf.getLocalFilename()); | 279 local = QUrl::fromLocalFile(cf.getLocalFilename()); |