From 1c02dc2d6ba4f6d217c2fc55fa513d252aa4dbde Mon Sep 17 00:00:00 2001 From: Monsterovich Date: Thu, 23 May 2019 19:49:42 +0200 Subject: [PATCH] fix(ui): fix 2 --- src/widget/widget.cpp | 4 ++-- src/widget/widget.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index c813d495b..8ee6fe007 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -1344,7 +1344,7 @@ void Widget::addGroupDialog(Group* group, ContentDialog* dialog) emit widget->chatroomWidgetClicked(widget); } -bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString text, bool sound, bool file) +bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString& text, bool sound, bool file) { bool hasActive; QWidget* currentWindow; @@ -1406,7 +1406,7 @@ bool Widget::newFriendMessageAlert(const ToxPk& friendId, const QString text, bo return false; } -bool Widget::newGroupMessageAlert(const GroupId& groupId, const ToxPk authorPk, const QString message, bool notify) +bool Widget::newGroupMessageAlert(const GroupId& groupId, const ToxPk& authorPk, const QString& message, bool notify) { bool hasActive; QWidget* currentWindow; diff --git a/src/widget/widget.h b/src/widget/widget.h index 7ad206cff..6e5148247 100644 --- a/src/widget/widget.h +++ b/src/widget/widget.h @@ -123,8 +123,8 @@ public: void showUpdateDownloadProgress(); void addFriendDialog(const Friend* frnd, ContentDialog* dialog); void addGroupDialog(Group* group, ContentDialog* dialog); - bool newFriendMessageAlert(const ToxPk& friendId, const QString text, bool sound = true, bool file = false); - bool newGroupMessageAlert(const GroupId& groupId, const ToxPk authorPk, const QString message, bool notify); + bool newFriendMessageAlert(const ToxPk& friendId, const QString& text, bool sound = true, bool file = false); + bool newGroupMessageAlert(const GroupId& groupId, const ToxPk& authorPk, const QString& message, bool notify); bool getIsWindowMinimized(); void updateIcons();