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

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
{