CResourceBrowser: Take search string by const reference

Same thing, less copies.
This commit is contained in:
Lioncash 2020-07-03 11:01:18 -04:00
parent 48b292ecee
commit eb76ac9039
2 changed files with 2 additions and 2 deletions

View File

@ -759,7 +759,7 @@ bool CResourceBrowser::Delete(QVector<CResourceEntry*> Resources, QVector<CVirtu
return false; return false;
} }
void CResourceBrowser::OnSearchStringChanged(QString SearchString) void CResourceBrowser::OnSearchStringChanged(const QString& SearchString)
{ {
bool WasAssetList = InAssetListMode(); bool WasAssetList = InAssetListMode();
mSearching = !SearchString.isEmpty(); mSearching = !SearchString.isEmpty();

View File

@ -98,7 +98,7 @@ public slots:
void OnCreateAssetAction(); void OnCreateAssetAction();
bool CreateDirectory(); bool CreateDirectory();
bool Delete(QVector<CResourceEntry*> Resources, QVector<CVirtualDirectory*> Directories); bool Delete(QVector<CResourceEntry*> Resources, QVector<CVirtualDirectory*> Directories);
void OnSearchStringChanged(QString SearchString); void OnSearchStringChanged(const QString& SearchString);
void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex); void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex);
void OnDoubleClickTable(QModelIndex Index); void OnDoubleClickTable(QModelIndex Index);
void OnResourceSelectionChanged(const QModelIndex& rkNewIndex); void OnResourceSelectionChanged(const QModelIndex& rkNewIndex);