OSDN Git Service

compiler warnings fix
authorIvailo Monev <xakepa10@gmail.com>
Mon, 31 Oct 2022 17:55:55 +0000 (19:55 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Mon, 31 Oct 2022 17:55:55 +0000 (19:55 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qdir.cpp

index 5a3f611..8b4e7d1 100644 (file)
@@ -1106,8 +1106,6 @@ bool QDir::mkdir(const QString &dirName) const
         return false;
     }
 
-    const QDirPrivate* d = d_ptr.constData();
-
     QString fn = filePath(dirName);
     return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), false);
 }
@@ -1128,8 +1126,6 @@ bool QDir::rmdir(const QString &dirName) const
         return false;
     }
 
-    const QDirPrivate* d = d_ptr.constData();
-
     QString fn = filePath(dirName);
     return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), false);
 }
@@ -1154,8 +1150,6 @@ bool QDir::mkpath(const QString &dirPath) const
         return false;
     }
 
-    const QDirPrivate* d = d_ptr.constData();
-
     QString fn = filePath(dirPath);
     return QFileSystemEngine::createDirectory(QFileSystemEntry(fn), true);
 }
@@ -1178,8 +1172,6 @@ bool QDir::rmpath(const QString &dirPath) const
         return false;
     }
 
-    const QDirPrivate* d = d_ptr.constData();
-
     QString fn = filePath(dirPath);
     return QFileSystemEngine::removeDirectory(QFileSystemEntry(fn), true);
 }