D11285: Introduce sanitizer class

Laurent Montel noreply at phabricator.kde.org
Fri Mar 16 13:54:53 UTC 2018


mlaurent requested changes to this revision.
mlaurent added inline comments.
This revision now requires changes to proceed.

INLINE COMMENTS

> databasesanitizer.cpp:46
> +    public:
> +        FileInfo(const quint32 d = 0, const quint32 i = 0, 
> +                const QString& u = QString(), const bool a = true)

you can replace this constructor by initialize directly variable

> bool accessible = true;
=========================

etc.

> it avoids to create this constructor
======================================

> databasesanitizer.cpp:99
> +        QVector<quint32> excludeIds;
> +        for (const auto& deviceId : deviceIds) {
> +            if (deviceId > 0) {

const auto & for a quint32
it's better to use directly quint32 without const'ref

REPOSITORY
  R293 Baloo

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

To: michaelh, #baloo, #frameworks, ngraham, mlaurent
Cc: mlaurent, ngraham, smithjd, ashaposhnikov, michaelh, astippich, spoorun, nicolasfella, alexeymin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180316/45946aa3/attachment.html>


More information about the Kde-frameworks-devel mailing list