summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qresource_iterator_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/qresource_iterator_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/qresource_iterator_p.h')
-rw-r--r--src/corelib/io/qresource_iterator_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qresource_iterator_p.h b/src/corelib/io/qresource_iterator_p.h
index 7bc546e44a..8a29ef0219 100644
--- a/src/corelib/io/qresource_iterator_p.h
+++ b/src/corelib/io/qresource_iterator_p.h
@@ -24,7 +24,8 @@ class QResourceFileEngineIteratorPrivate;
class QResourceFileEngineIterator : public QAbstractFileEngineIterator
{
public:
- QResourceFileEngineIterator(QDir::Filters filters, const QStringList &filterNames);
+ QResourceFileEngineIterator(const QString &path, QDir::Filters filters,
+ const QStringList &filterNames);
~QResourceFileEngineIterator();
QString next() override;