QCollatorPrivate: initialize in declarations rather than constructor
Change-Id: If5f240418e6a538ef44af973929b5c84e63b70d8 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
a7f2c32657
commit
c39d2ab482
@ -88,7 +88,7 @@ typedef int CollatorType;
|
||||
class QCollatorPrivate
|
||||
{
|
||||
public:
|
||||
QAtomicInt ref;
|
||||
QAtomicInt ref = 1;
|
||||
QLocale locale;
|
||||
#if defined(Q_OS_WIN) && !QT_CONFIG(icu)
|
||||
#ifdef USE_COMPARESTRINGEX
|
||||
@ -97,12 +97,12 @@ public:
|
||||
LCID localeID;
|
||||
#endif
|
||||
#endif
|
||||
Qt::CaseSensitivity caseSensitivity;
|
||||
bool numericMode;
|
||||
bool ignorePunctuation;
|
||||
bool dirty;
|
||||
Qt::CaseSensitivity caseSensitivity = Qt::CaseSensitive;
|
||||
bool numericMode = false;
|
||||
bool ignorePunctuation = false;
|
||||
bool dirty = true;
|
||||
|
||||
CollatorType collator;
|
||||
CollatorType collator = 0;
|
||||
|
||||
void clear() {
|
||||
cleanup();
|
||||
@ -113,12 +113,6 @@ public:
|
||||
void cleanup();
|
||||
|
||||
QCollatorPrivate()
|
||||
: ref(1),
|
||||
caseSensitivity(Qt::CaseSensitive),
|
||||
numericMode(false),
|
||||
ignorePunctuation(false),
|
||||
dirty(true),
|
||||
collator(0)
|
||||
{ cleanup(); }
|
||||
|
||||
~QCollatorPrivate() { cleanup(); }
|
||||
|
Loading…
Reference in New Issue
Block a user