~kdevelop/kdevelop4/master

Viewing all changes in revision 18434.

  • Committer: Friedrich W. H. Kossebau
  • Date: 2018-07-20 10:39:03 UTC
  • Revision ID: git-v1:6df7ff9882516f83883c811e7660a185c2e5727c
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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: