!30 fix wrong assignment operator implementation
From: @hou-hongxun Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
07e12fc4e5
43
0001-fix-wrong-assignment-operator-implementation.patch
Normal file
43
0001-fix-wrong-assignment-operator-implementation.patch
Normal file
@ -0,0 +1,43 @@
|
||||
From ed4f2fb961c274d99c8ca66c232ca13b6e855f61 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
|
||||
Date: Thu, 25 Apr 2024 09:41:37 +0800
|
||||
Subject: [PATCH] fix wrong assignment operator implementation
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
|
||||
---
|
||||
src/notifyreceiveinfo.cpp | 16 ++++++++++++++--
|
||||
1 file changed, 14 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/notifyreceiveinfo.cpp b/src/notifyreceiveinfo.cpp
|
||||
index 0c28cd1..8c1e04e 100644
|
||||
--- a/src/notifyreceiveinfo.cpp
|
||||
+++ b/src/notifyreceiveinfo.cpp
|
||||
@@ -49,8 +49,20 @@ notifyReceiveInfo::notifyReceiveInfo(const notifyReceiveInfo ¬ify) :
|
||||
|
||||
notifyReceiveInfo ¬ifyReceiveInfo::operator=(const notifyReceiveInfo ¬ify)
|
||||
{
|
||||
- notifyReceiveInfo ent(notify);
|
||||
- return ent;
|
||||
+ m_appName = notify.m_appName;
|
||||
+ m_id = notify.m_id;
|
||||
+ m_appIcon = notify.m_appIcon;
|
||||
+ m_summary = notify.m_summary;
|
||||
+ m_body = notify.m_body;
|
||||
+ m_actions = notify.m_actions;
|
||||
+ m_hints = notify.m_hints;
|
||||
+ m_ctime = notify.m_ctime;
|
||||
+ m_replacesId = notify.m_replacesId;
|
||||
+ m_timeout = notify.m_timeout;
|
||||
+ m_urlStr = notify.m_urlStr;
|
||||
+ m_actionStr = notify.m_actionStr;
|
||||
+
|
||||
+ return *this;
|
||||
}
|
||||
|
||||
QString notifyReceiveInfo::appName() const
|
||||
--
|
||||
2.43.0
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
Name: ukui-notification-daemon
|
||||
Version: 3.3.1
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: daemon to display passive popup notifications
|
||||
License: GPL-3+
|
||||
URL: https://github.com/ukui/ukui-notification-daemon
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Patch01: 0001-add-translations-file.patch
|
||||
Patch02: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
|
||||
Patch03: 0001-fix-wrong-assignment-operator-implementation.patch
|
||||
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
@ -38,8 +39,9 @@ Desktop Notifications spec.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch01 -p1
|
||||
%patch02 -p1
|
||||
%patch -p1 1
|
||||
%patch -p1 2
|
||||
%patch -p1 3
|
||||
|
||||
%build
|
||||
export PATH=%{_qt5_bindir}:$PATH
|
||||
@ -65,6 +67,9 @@ popd
|
||||
%{_datadir}/ukui-notification-daemon/ukui-notification-daemon_zh_CN.qm
|
||||
|
||||
%changelog
|
||||
* Thu Apr 25 2024 houhongxun <houhongxun@kylinos.cn> - 3.3.1-6
|
||||
- fix wrong assignment operator implementaion
|
||||
|
||||
* Fri Jul 21 2023 peijiankang <peijiankang@kylinos.cn> - 3.3.1-5
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user