mirror of
https://github.com/qmlnet/qmlnet.git
synced 2026-05-15 14:15:54 -06:00
[PR #195] [MERGED] Replace usage of QString::asprintf #236
Labels
No labels
bug
enhancement
help wanted
help wanted
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/qmlnet#236
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/qmlnet/qmlnet/pull/195
Author: @jdpage
Created: 4/23/2020
Status: ✅ Merged
Merged: 4/24/2020
Merged by: @pauldotknopf
Base:
develop← Head:develop📝 Commits (1)
470fc43Replace usage of QString::asprintf for new Qt📊 Changes
1 file changed (+4 additions, -8 deletions)
View changed files
📝
src/native/QmlNet/Hosting/CoreHost.cpp(+4 -8)📄 Description
In Qt5,
QString::asprintfis a static method which returns a new string, rather than an instance method which updates the existing string (as it was in Qt4), so the code was passing empty strings to the managed entry point. Additionally, the documentation warns against it.The static QString::number method is available in both Qt4 and Qt5. I haven't tested against Qt4 but it works in 5.14.2.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.