Replace 0 with nullptr
Change-Id: I9ee25644a3e066391e881bd2f64274909eabfcbf Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
b4e290a9ab
commit
fe360a9d52
@ -1035,7 +1035,7 @@ bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemM
|
|||||||
// Check for ".lnk": Directories named ".lnk" should be skipped, corrupted
|
// Check for ".lnk": Directories named ".lnk" should be skipped, corrupted
|
||||||
// link files should still be detected as links.
|
// link files should still be detected as links.
|
||||||
const QString origFilePath = entry.filePath();
|
const QString origFilePath = entry.filePath();
|
||||||
if (origFilePath.endsWith(QLatin1String(".lnk")) && !isDirPath(origFilePath, 0)) {
|
if (origFilePath.endsWith(QLatin1String(".lnk")) && !isDirPath(origFilePath, nullptr)) {
|
||||||
data.entryFlags |= QFileSystemMetaData::WinLnkType;
|
data.entryFlags |= QFileSystemMetaData::WinLnkType;
|
||||||
fname = QFileSystemEntry(readLink(entry));
|
fname = QFileSystemEntry(readLink(entry));
|
||||||
} else {
|
} else {
|
||||||
@ -1199,7 +1199,7 @@ bool QFileSystemEngine::removeDirectory(const QFileSystemEntry &entry, bool remo
|
|||||||
if (chunkRef.length() == 2 && chunkRef.at(0).isLetter() && chunkRef.at(1) == QLatin1Char(':'))
|
if (chunkRef.length() == 2 && chunkRef.at(0).isLetter() && chunkRef.at(1) == QLatin1Char(':'))
|
||||||
break;
|
break;
|
||||||
const QString chunk = chunkRef.toString();
|
const QString chunk = chunkRef.toString();
|
||||||
if (!isDirPath(chunk, 0))
|
if (!isDirPath(chunk, nullptr))
|
||||||
return false;
|
return false;
|
||||||
if (!rmDir(chunk))
|
if (!rmDir(chunk))
|
||||||
return oldslash != 0;
|
return oldslash != 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user