scripted-diff: Drop redundant QString calls#250
Merged
maflcko merged 1 commit intobitcoin-core:masterfrom Mar 15, 2021
Merged
Conversation
-BEGIN VERIFY SCRIPT- sed -i 's/QString(QObject::tr(\([^)]*\))/QObject::tr(\1/' src/qt/guiutil.cpp -END VERIFY SCRIPT-
jarolrod
reviewed
Mar 15, 2021
Contributor
jarolrod
left a comment
There was a problem hiding this comment.
ACK def1e64, tested on macOS 10.14.6 Qt 5.15.2
This change is correct according to the Qt docs: https://doc.qt.io/qt-5/qobject.html#tr
Verified that these are all the occurrences of this case. Ran bitcoin-qt and verified there are no alterations of behavior with this change.
sidhujag
pushed a commit
to syscoin/syscoin
that referenced
this pull request
Mar 15, 2021
def1e64 scripted-diff: Drop redundant QString calls (Hennadii Stepanov) Pull request description: The return type of `QObject::tr` function _is_ `QString` 🐅 ACKs for top commit: jarolrod: ACK def1e64, tested on macOS 10.14.6 Qt 5.15.2 Tree-SHA512: ef405c87a30d6965f6887511d8666b6da57d258ca07833a3fa2dc9fd147d0539d33c57f7551ee13c1dd8024d6057139595c6ce5d088dd6efd7aa13db2a3eebdb
gwillen
pushed a commit
to ElementsProject/elements
that referenced
this pull request
Jun 28, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The return type of
QObject::trfunction isQString🐅