Use explicit constructor for better type restriction

Co-Authored-By: catalinr <catalinr@users.noreply.github.com>
This commit is contained in:
VZ 2019-02-27 22:11:50 +02:00 committed by GitHub
parent 934698d8ac
commit 6374aef924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ namespace
class LexicalSortProxyModel : public QSortFilterProxyModel
{
public:
LexicalSortProxyModel(QObject* owner) : QSortFilterProxyModel(owner) {}
explicit LexicalSortProxyModel(QObject* owner) : QSortFilterProxyModel(owner) {}
bool lessThan( const QModelIndex &left, const QModelIndex &right ) const wxOVERRIDE
{