Review Request 124941: Reparse notification config only when actually needed
Kai Uwe Broulik
kde at privat.broulik.de
Wed Aug 26 21:49:38 UTC 2015
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124941/#review84428
-----------------------------------------------------------
src/knotificationmanager.cpp (line 3)
<https://git.reviewboard.kde.org/r/124941/#comment58447>
It's 2015 now
src/knotificationmanager.cpp (line 175)
<https://git.reviewboard.kde.org/r/124941/#comment58448>
Given you already check whether the entry exists before adding it, a removeOne should be sufficient
- Kai Uwe Broulik
On Aug. 26, 2015, 9:05 nachm., Martin Klapetek wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/124941/
> -----------------------------------------------------------
>
> (Updated Aug. 26, 2015, 9:05 nachm.)
>
>
> Review request for KDE Frameworks.
>
>
> Repository: knotifications
>
>
> Description
> -------
>
> Till now every KNotification::notify() call would reparse the whole cache of configs. With this patch it watches for KNotifyConfig changes and reparses only those configs that had actually changed.
>
>
> Diffs
> -----
>
> src/knotificationmanager.cpp 4c648a9
> src/knotificationmanager_p.h 95e13d1
> src/knotifyconfig.h fae17cb
> src/knotifyconfig.cpp 6a46a00
>
> Diff: https://git.reviewboard.kde.org/r/124941/diff/
>
>
> Testing
> -------
>
> Works as expected.
>
>
> Thanks,
>
> Martin Klapetek
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150826/c4032a11/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list