From eb76ac9039e59acd7ba7407f3fd566a50d8257a5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 3 Jul 2020 11:01:18 -0400 Subject: [PATCH] CResourceBrowser: Take search string by const reference Same thing, less copies. --- src/Editor/ResourceBrowser/CResourceBrowser.cpp | 2 +- src/Editor/ResourceBrowser/CResourceBrowser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceBrowser.cpp b/src/Editor/ResourceBrowser/CResourceBrowser.cpp index c6d8ec6f..dafee6c7 100644 --- a/src/Editor/ResourceBrowser/CResourceBrowser.cpp +++ b/src/Editor/ResourceBrowser/CResourceBrowser.cpp @@ -759,7 +759,7 @@ bool CResourceBrowser::Delete(QVector Resources, QVector Resources, QVector Directories); - void OnSearchStringChanged(QString SearchString); + void OnSearchStringChanged(const QString& SearchString); void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex); void OnDoubleClickTable(QModelIndex Index); void OnResourceSelectionChanged(const QModelIndex& rkNewIndex);