summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine_p.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2024-02-28 23:52:38 +0200
committerAhmad Samir <a.samirh78@gmail.com>2024-03-17 17:49:33 +0200
commit886eb76aeae5ba2cff6c4f0456ee14e63b19a9f7 (patch)
tree00baab76e18a316b5a82957e26560605265440be /src/corelib/io/qfsfileengine_p.h
parente146d835a69d57748bf2978cf5134ac5d86d81cf (diff)
QAbstractFileEngine: add a path parameter to beginEntryList()
Change beginEntryList() to take a path parameter, which it passes on to the QAFEIterator constructor; setting the path at construction makes more sense, because typically the path isn't supposed to change during iteration, and this simplifies the code at the call site. Remove setPath(), the last usage in Qt repos was in QtCreator, and that has been ported away from it. Change-Id: I01baa688e0f9b582aacb63d7d98a794276e58034 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qfsfileengine_p.h')
-rw-r--r--src/corelib/io/qfsfileengine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine_p.h b/src/corelib/io/qfsfileengine_p.h
index a2dc699305..3cc3b43a0b 100644
--- a/src/corelib/io/qfsfileengine_p.h
+++ b/src/corelib/io/qfsfileengine_p.h
@@ -82,7 +82,7 @@ public:
int handle() const override;
#ifndef QT_NO_FILESYSTEMITERATOR
- IteratorUniquePtr beginEntryList(QDir::Filters filters,
+ IteratorUniquePtr beginEntryList(const QString &path, QDir::Filters filters,
const QStringList &filterNames) override;
#endif