opt: initialize variable in the constructor

This commit is contained in:
Xiao YiFang 2022-10-07 17:39:43 +08:00
parent 2c9fdd5227
commit 33c631e4e5

View file

@ -2,7 +2,7 @@
#include "wstring_qt.hh" #include "wstring_qt.hh"
HeadwordListModel::HeadwordListModel( QObject * parent ) : HeadwordListModel::HeadwordListModel( QObject * parent ) :
QAbstractListModel( parent ), filtering( false ), index( 0 ), ptr( 0 ) QAbstractListModel( parent ), filtering( false ), totalSize(0), index( 0 ),ptr( 0 )
{ {
} }