D15796: Prefer initializer_list over operator << for initializing a QList

Kai Uwe Broulik noreply at phabricator.kde.org
Fri Sep 28 09:01:42 BST 2018


broulik added inline comments.

INLINE COMMENTS

> apol wrote in main.cpp:252
> Why do you need to hardcode the QStringList constructor?

I think because there's an overload for `QString` and `QStringList` and you can also do `QString{"foo"}` so it's ambiguous if you just use `{}`

REPOSITORY
  R40 Kate

REVISION DETAIL
  https://phabricator.kde.org/D15796

To: tcanabrava
Cc: broulik, apol, kwrite-devel, michaelh, kevinapavew, ngraham, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180928/11089f41/attachment.html>


More information about the KWrite-Devel mailing list