Commit b72f5eca authored by Marc Mutz's avatar Marc Mutz Committed by Oswald Buddenhagen
Browse files

qmake: use new QString::arg(QStringView) overload


Add ProString::toQStringView() to avoid creating QStrings just to pass
them to QString::arg() (single-arg; multiArg() does not, yet, accept
QStringViews).

I could have used the existing toQStringRef() function, but QStringRef
is a tad more complex to copy and quite a bit less future-proof.

Change-Id: I344c46f301768e844c487d36ce3e6cb276de8843
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
(cherry picked from qtbase/f5d8ad61a4c85a656a7332c43d0c42f5eaf43593)
Reviewed-by: default avatarTor Arne Vestbø <tor.arne.vestbo@qt.io>
Showing with 25 additions and 24 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment