Improve performance of a few for-loops

Some for-loops needlessly copied the collection they were looping over.
This commit is contained in:
Gianluca Recchia
2018-10-27 23:23:34 +02:00
parent e2ee82169c
commit 4876beabed
5 changed files with 11 additions and 11 deletions

View File

@@ -118,7 +118,7 @@ public:
Entry* findEntryByPath(QString entryPath);
Group* findGroupByUuid(const QUuid& uuid);
Group* findGroupByPath(QString groupPath);
QStringList locate(QString locateTerm, QString currentPath = {"/"});
QStringList locate(QString locateTerm, QString currentPath = {"/"}) const;
Entry* addEntryWithPath(QString entryPath);
void setUuid(const QUuid& uuid);
void setName(const QString& name);