Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/private/dqmlglobalobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ void DQMLGlobalObject::closeMessage(QObject *target, const QString &msgId)
void DQMLGlobalObject::sendSystemMessage(const QString &summary, const QString &body, const QString &appIcon, const QStringList &actions, const QVariantMap hints, const int timeout, const uint replaceId)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (performance): Pass hints by const reference to avoid copying

Update the parameter to 'const QVariantMap& hints' to avoid unnecessary copies.

{
QDBusPendingCall reply = DTK_CORE_NAMESPACE::DUtil::DNotifySender(summary)
.appName(qAppName())
.appName(qApp->applicationDisplayName())
.appIcon(appIcon)
.appBody(body)
.actions(actions)
Expand Down
Loading