aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsloggingutils.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2025-04-28 17:09:30 +0200
committerUlf Hermann <ulf.hermann@qt.io>2025-06-27 13:43:12 +0200
commitc78667aba2bc27d58cce05fe4de572411631297c (patch)
tree55b910ed99304352b622948eceed3702ec212992 /src/qmlcompiler/qqmljsloggingutils.cpp
parenta4aee687762ffafda800e16f03797f6aebff4fd8 (diff)
Pass QString and callbacks by const ref
Passing them by value forces redundant copies. Change-Id: I4f1da48155e3326c1d6bfa1933ee2e520e516924 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler/qqmljsloggingutils.cpp')
-rw-r--r--src/qmlcompiler/qqmljsloggingutils.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qmlcompiler/qqmljsloggingutils.cpp b/src/qmlcompiler/qqmljsloggingutils.cpp
index 8eecd08242..25ce2e4cbe 100644
--- a/src/qmlcompiler/qqmljsloggingutils.cpp
+++ b/src/qmlcompiler/qqmljsloggingutils.cpp
@@ -32,8 +32,9 @@ namespace QQmlJS {
LoggerCategory::LoggerCategory() : d_ptr{ new LoggerCategoryPrivate } { }
-LoggerCategory::LoggerCategory(QString name, QString settingsName, QString description,
- QtMsgType level, bool ignored, bool isDefault)
+LoggerCategory::LoggerCategory(
+ const QString &name, const QString &settingsName, const QString &description, QtMsgType level,
+ bool ignored, bool isDefault)
: d_ptr{ new LoggerCategoryPrivate }
{
Q_D(LoggerCategory);