D13043: Properly sanitize input

2018-06-19 Thread Aleix Pol Gonzalez
apol added a comment. Yep, this was from the old and deprecated modeltest.cpp. I'll have to look into how to do it right :P REPOSITORY R275 KItemModels REVISION DETAIL https://phabricator.kde.org/D13043 To: apol, #frameworks, broulik Cc: dfaure, broulik, kde-frameworks-devel, michae

D13043: Properly sanitize input

2018-06-19 Thread David Faure
dfaure added a comment. BTW, the commit message refers to ModelTest, but that's the old modeltest.cpp, not the new QAbstractItemModelTester, right? I'm working on QConcatenateTablesProxyModel (https://codereview.qt-project.org/166323) and there QAbstractItemModelTester passes with asser

D13043: Properly sanitize input

2018-05-29 Thread Aleix Pol Gonzalez
This revision was automatically updated to reflect the committed changes. Closed by commit R275:958e7c9c56d9: Properly sanitize input (authored by apol). REPOSITORY R275 KItemModels CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13043?vs=34858&id=35111 REVISION DETAIL https://phabr

D13043: Properly sanitize input

2018-05-29 Thread Kai Uwe Broulik
broulik accepted this revision. This revision is now accepted and ready to land. REPOSITORY R275 KItemModels BRANCH master REVISION DETAIL https://phabricator.kde.org/D13043 To: apol, #frameworks, broulik Cc: broulik, kde-frameworks-devel, michaelh, ngraham, bruns

D13043: Properly sanitize input

2018-05-25 Thread Aleix Pol Gonzalez
apol marked 3 inline comments as done. apol added inline comments. INLINE COMMENTS > broulik wrote in kconcatenaterowsproxymodel.cpp:112 > You can also use `{}` here, no? Also, I would prefer an early return rather > than unary operator No, the ternary operator doesn't allow using {} saying it

D13043: Properly sanitize input

2018-05-25 Thread Aleix Pol Gonzalez
apol updated this revision to Diff 34858. apol marked 2 inline comments as done. apol added a comment. address kai's remarks REPOSITORY R275 KItemModels CHANGES SINCE LAST UPDATE https://phabricator.kde.org/D13043?vs=34659&id=34858 BRANCH master REVISION DETAIL https://phabricator.k

D13043: Properly sanitize input

2018-05-23 Thread Kai Uwe Broulik
broulik added inline comments. INLINE COMMENTS > kconcatenaterowsproxymodel.cpp:70 > const QAbstractItemModel *sourceModel = sourceIndex.model(); > +if (!sourceModel) > +return {}; Coding style, braces also for single line statements > kconcatenaterowsproxymodel.cpp:112 >

D13043: Properly sanitize input

2018-05-22 Thread Aleix Pol Gonzalez
apol created this revision. apol added a reviewer: Frameworks. Restricted Application added a project: Frameworks. Restricted Application added a subscriber: kde-frameworks-devel. apol requested review of this revision. REVISION SUMMARY Helps to use it together with ModelTest REPOSITORY R275