vonreth added inline comments.

INLINE COMMENTS

> pino wrote in notifybysnore.cpp:63
> - splitRef here to not allocate strings that are not used anyway (since they 
> are split again later on)
> - you are using a C++11 for loop on a Qt container, and this will detach it 
> -- you need to store the container as variable:
> 
>   const auto parts = data.splitRef(...);
>   for (... : parts)
> 
> - QLatin1Char is better than QStringLiteral here (since you have a single 
> character as separator)

splitRef

is interesting, everyone learns in a code review.
Wouldn't a `qAsConst` also prevent detaching?

REPOSITORY
  R289 KNotifications

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

To: brute4s99, broulik, sredman, vonreth, albertvaka
Cc: nicolasfella, pino, kde-frameworks-devel, LeGast00n, michaelh, ngraham, 
bruns

Reply via email to