From d32b2d73fe631b99b6747a07002a40d7af92fe39 2012-09-03 10:33:07 From: Jani Honkonen Date: 2012-09-03 10:33:07 Subject: [PATCH] put QString::null back We should avoid using these. Even qt doc says to avoid using isNull checks. --- diff --git a/src/axis/barcategoryaxis/qbarcategoryaxis.cpp b/src/axis/barcategoryaxis/qbarcategoryaxis.cpp index e70fe3a..b61d069 100644 --- a/src/axis/barcategoryaxis/qbarcategoryaxis.cpp +++ b/src/axis/barcategoryaxis/qbarcategoryaxis.cpp @@ -199,7 +199,7 @@ void QBarCategoryAxis::remove(const QString &category) if(!d->m_categories.isEmpty()) setRange(d->m_categories.first(),d->m_categories.last()); else - setRange(QString(),QString()); + setRange(QString::null,QString::null); emit categoriesChanged(); } } @@ -242,7 +242,7 @@ void QBarCategoryAxis::clear() { Q_D(QBarCategoryAxis); d->m_categories.clear(); - setRange(QString(),QString()); + setRange(QString::null,QString::null); emit categoriesChanged(); } diff --git a/src/axis/valueaxis/qvalueaxis.cpp b/src/axis/valueaxis/qvalueaxis.cpp index 266ddf6..9d04784 100644 --- a/src/axis/valueaxis/qvalueaxis.cpp +++ b/src/axis/valueaxis/qvalueaxis.cpp @@ -301,7 +301,8 @@ QValueAxisPrivate::QValueAxisPrivate(QValueAxis* q): m_min(0), m_max(0), m_tickCount(5), - m_niceNumbers(false) + m_niceNumbers(false), + m_format(QString::null) { }