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)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 8 Jan 2020 18:41:46 +0000 (19:41 +0100)
src/uisupport/actioncollection.cpp

index 08141a8..765d7f8 100644 (file)
@@ -78,7 +78,7 @@ QAction* ActionCollection::addAction(const QString& name, QAction* action)
     else
         action->setObjectName(indexName);
     if (indexName.isEmpty())
     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)
 
     // do we already have this action?
     if (_actionByName.value(indexName, 0) == action)