c++14/17 - Fwd: Re: Konsole | Simplify filters (!59)

Kurt_009 kurt.hindenburg at gmail.com
Mon Nov 9 13:48:16 GMT 2020


Hi, I changed master to allow C++17.   I'll double-check before 21.04 to
see how much it is used.

Kurt

On Thu, Dec 26, 2019 at 11:01 PM <kurt.hindenburg at gmail.com> wrote:

> Does anyone have an opinion if we should require c++14 or c++17?  14 seems
> reasonable but sure about 17.
>
>
> Kurt
>
>
> -------- Forwarded Message --------
> Subject: Re: Konsole | Simplify filters (!59)
> Date: Sun, 22 Dec 2019 21:09:26 +0000
> From: Tomaz Canabrava <noreply at kde.org> <noreply at kde.org>
> Reply-To: KDE / Konsole
> <incoming+b8f09169d0d79ff3690046dd88efdfda at invent.kde.org>
> <incoming+b8f09169d0d79ff3690046dd88efdfda at invent.kde.org>
> To: kurt.hindenburg at gmail.com
>
> Tomaz Canabrava <https://invent.kde.org/tcanabrava> commented on a
> discussion on src/Filter.cpp
> <https://invent.kde.org/kde/konsole/merge_requests/59#note_21242>:
> 360 329
>
>      QRegularExpressionMatchIterator iterator(_searchText.globalMatch(*text));
>
> 361 330
>
>      while (iterator.hasNext()) {
>
> 362 331
>
>          QRegularExpressionMatch match(iterator.next());
>
> 363
>
> -
>
> 364
>
> -        int startLine = 0;
>
> 365
>
> -        int endLine = 0;
>
> 366
>
> -        int startColumn = 0;
>
> 367
>
> -        int endColumn = 0;
>
> 368
>
> -
>
> 369
>
> -        getLineColumn(match.capturedStart(), startLine, startColumn);
>
> 370
>
> -        getLineColumn(match.capturedEnd(), endLine, endColumn);
>
>
> 332
>
> +        auto [startLine, startColumn] = getLineColumn(match.capturedStart());
>
>
> 333
>
> +        auto [endLine, endColumn] = getLineColumn(match.capturedEnd());
>
> can we bump to c++14 or 17? it's been six years already since 14 :)
>
>> Reply to this email directly or view it on GitLab
> <https://invent.kde.org/kde/konsole/merge_requests/59#note_21242>.
> You're receiving this email because of your account on invent.kde.org. If
> you'd like to receive fewer emails, you can unsubscribe
> <https://invent.kde.org/sent_notifications/b8f09169d0d79ff3690046dd88efdfda/unsubscribe>
> from this thread or adjust your notification settings.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20201109/dad1be24/attachment.htm>


More information about the konsole-devel mailing list