Fix QStringBuilder taking reference to temporary due to auto

Authored by kossebau on Jul 19 2018, 9:48 PM.

Description

Fix QStringBuilder taking reference to temporary due to auto

Summary:
Compiler decides for "auto" type result to use QStringBuilder, though the
expression passed to it includes a temporary QString result from a
QStringList::join() result. Which then is dropped after the assignement, due
to getting out of scope.

BUG: 394055

Reviewers: KDevelop, shashwatdixit, mwolff, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: kfunk, kdevelop-devel

Tags: KDevelop

Differential Revision: https://phabricator.kde.org/D14235

Details

Committed
kossebauJul 20 2018, 10:39 AM
Reviewer
KDevelop
Differential Revision
D14235: Fix QStringBuilder taking reference to temporary due to auto
Parents
R32:96cbc776d8f7: Merge branch '5.2'
Branches
Unknown
Tags
Unknown