From a85bbd3e496e90d6455ab18f70bb58b52604d0e1 Mon Sep 17 00:00:00 2001 From: Lioncache Date: Sun, 7 Dec 2025 02:37:51 -0500 Subject: [PATCH] CResourceBrowser: Pass strings by const reference in signals Allows slots to avoid copies where applicable. --- src/Editor/ResourceBrowser/CResourceBrowser.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/ResourceBrowser/CResourceBrowser.h b/src/Editor/ResourceBrowser/CResourceBrowser.h index 55eb2919..be1d54f4 100644 --- a/src/Editor/ResourceBrowser/CResourceBrowser.h +++ b/src/Editor/ResourceBrowser/CResourceBrowser.h @@ -130,8 +130,8 @@ public slots: signals: void SelectedResourceChanged(CResourceEntry *pNewRes); - void ResourceAboutToBeMoved(CResourceEntry *pRes, QString NewPath); - void ResourceMoved(CResourceEntry *pRes, CVirtualDirectory *pOldDir, TString OldName); + void ResourceAboutToBeMoved(CResourceEntry *pRes, const QString& NewPath); + void ResourceMoved(CResourceEntry *pRes, CVirtualDirectory *pOldDir, const TString& OldName); void ResourceAboutToBeCreated(CVirtualDirectory* pInDir); void ResourceCreated(CResourceEntry *pRes); @@ -139,10 +139,10 @@ signals: void ResourceAboutToBeDeleted(CResourceEntry *pRes); void ResourceDeleted(); - void DirectoryAboutToBeMoved(CVirtualDirectory *pDir, QString NewPath); - void DirectoryMoved(CVirtualDirectory *pDir, CVirtualDirectory *pOldDir, TString OldName); + void DirectoryAboutToBeMoved(CVirtualDirectory *pDir, const QString& NewPath); + void DirectoryMoved(CVirtualDirectory *pDir, CVirtualDirectory *pOldDir, const TString& OldName); - void DirectoryAboutToBeCreated(QString DirPath); + void DirectoryAboutToBeCreated(const QString& DirPath); void DirectoryCreated(CVirtualDirectory *pDir); void DirectoryAboutToBeDeleted(CVirtualDirectory *pDir);