[PATCH 5/6] qa: Replace deprecated QString::sprintf() by QString::asprintf()
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 7 Jan 2020 19:39:38 +0000 (20:39 +0100)
committerFelix Geyer <fgeyer@debian.org>
Fri, 12 Feb 2021 17:40:17 +0000 (17:40 +0000)
From 56491f1d5772764aa82a5bda85c83ab336af4346 Mon Sep 17 00:00:00 2001
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

Gbp-Pq: Topic qt514
Gbp-Pq: Name 0005-qa-Replace-deprecated-QString-sprintf-by-QString-asp.patch

src/uisupport/actioncollection.cpp

index b5364ac2cea3022c94440966aaafa82d64d9170d..e8b60666e1a3a58d03943865f5ba4c6757e8291b 100644 (file)
@@ -93,7 +93,7 @@ QAction *ActionCollection::addAction(const QString &name, QAction *action)
     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)