Package: quassel / 1:0.13.1-5

qt514/0005-qa-Replace-deprecated-QString-sprintf-by-QString-asp.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 56491f1d5772764aa82a5bda85c83ab336af4346 Mon Sep 17 00:00:00 2001
From: Manuel Nickschas <sputnick@quassel-irc.org>
Date: Tue, 7 Jan 2020 20:39:38 +0100
Subject: [PATCH 5/6] qa: Replace deprecated QString::sprintf() by
 QString::asprintf()
Bug: https://bugs.quassel-irc.org/issues/1544
Bug-Ubuntu: https://bugs.launchpad.net/quassel/+bug/1885436
Origin: upstream, https://github.com/quassel/quassel/pull/518
Origin: upstream, https://github.com/quassel/quassel/commit/56491f1d5772764aa82a5bda85c83ab336af4346

---
 src/uisupport/actioncollection.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/src/uisupport/actioncollection.cpp
+++ b/src/uisupport/actioncollection.cpp
@@ -93,7 +93,7 @@ QAction *ActionCollection::addAction(con
     else
         action->setObjectName(indexName);
     if (indexName.isEmpty())
-        indexName = indexName.sprintf("unnamed-%p", (void *)action);
+        indexName = indexName.asprintf("unnamed-%p", (void*)action);
 
     // do we already have this action?
     if (_actionByName.value(indexName, 0) == action)