CResourceBrowser: Take search string by const reference
Same thing, less copies.
This commit is contained in:
parent
48b292ecee
commit
eb76ac9039
|
@ -759,7 +759,7 @@ bool CResourceBrowser::Delete(QVector<CResourceEntry*> Resources, QVector<CVirtu
|
|||
return false;
|
||||
}
|
||||
|
||||
void CResourceBrowser::OnSearchStringChanged(QString SearchString)
|
||||
void CResourceBrowser::OnSearchStringChanged(const QString& SearchString)
|
||||
{
|
||||
bool WasAssetList = InAssetListMode();
|
||||
mSearching = !SearchString.isEmpty();
|
||||
|
|
|
@ -98,7 +98,7 @@ public slots:
|
|||
void OnCreateAssetAction();
|
||||
bool CreateDirectory();
|
||||
bool Delete(QVector<CResourceEntry*> Resources, QVector<CVirtualDirectory*> Directories);
|
||||
void OnSearchStringChanged(QString SearchString);
|
||||
void OnSearchStringChanged(const QString& SearchString);
|
||||
void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex);
|
||||
void OnDoubleClickTable(QModelIndex Index);
|
||||
void OnResourceSelectionChanged(const QModelIndex& rkNewIndex);
|
||||
|
|
Loading…
Reference in New Issue