Little optimization: change parent = 0 to parent = nullptr

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2016-02-24 17:31:44 +02:00
parent da2c6d3242
commit e1837d1b03
13 changed files with 16 additions and 13 deletions

View File

@ -46,7 +46,7 @@ class AbstractTest : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit AbstractTest(QObject *parent = 0); explicit AbstractTest(QObject *parent = nullptr);
protected: protected:
void Comparison(const QVector<QPointF> &ekv, const QVector<QPointF> &ekvOrig) const; void Comparison(const QVector<QPointF> &ekv, const QVector<QPointF> &ekvOrig) const;

View File

@ -40,7 +40,7 @@ class TST_MeasurementRegExp : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_MeasurementRegExp(QObject *parent = 0); explicit TST_MeasurementRegExp(QObject *parent = nullptr);
virtual ~TST_MeasurementRegExp() Q_DECL_OVERRIDE; virtual ~TST_MeasurementRegExp() Q_DECL_OVERRIDE;
private slots: private slots:

View File

@ -35,7 +35,7 @@ class TST_NameRegExp : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_NameRegExp(QObject *parent = 0); explicit TST_NameRegExp(QObject *parent = nullptr);
signals: signals:

View File

@ -36,7 +36,7 @@ class TST_QmuTokenParser : public QObject
Q_OBJECT Q_OBJECT
public: public:
Q_DISABLE_COPY(TST_QmuTokenParser) Q_DISABLE_COPY(TST_QmuTokenParser)
explicit TST_QmuTokenParser(QObject *parent = 0); explicit TST_QmuTokenParser(QObject *parent = nullptr);
private slots: private slots:
void IsSingle_data(); void IsSingle_data();

View File

@ -35,7 +35,7 @@ class TST_TapeCommandLine : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_TapeCommandLine(QObject *parent = 0); explicit TST_TapeCommandLine(QObject *parent = nullptr);
private slots: private slots:
void init(); void init();

View File

@ -38,7 +38,7 @@ class TST_TSTranslation : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_TSTranslation(QObject *parent = 0); explicit TST_TSTranslation(QObject *parent = nullptr);
private slots: private slots:
void CheckEnglishLocalization(); void CheckEnglishLocalization();

View File

@ -35,7 +35,7 @@ class TST_VAbstractDetail : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VAbstractDetail(QObject *parent = 0); explicit TST_VAbstractDetail(QObject *parent = nullptr);
signals: signals:

View File

@ -35,7 +35,7 @@ class TST_ValentinaCommandLine : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_ValentinaCommandLine(QObject *parent = 0); explicit TST_ValentinaCommandLine(QObject *parent = nullptr);
private slots: private slots:
void init(); void init();

View File

@ -35,7 +35,7 @@ class TST_VArc : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VArc(QObject *parent = 0); explicit TST_VArc(QObject *parent = nullptr);
private slots: private slots:
void CompareTwoWays(); void CompareTwoWays();

View File

@ -35,13 +35,16 @@ class TST_VEllipticalArc : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VEllipticalArc(QObject *parent = 0); explicit TST_VEllipticalArc(QObject *parent = nullptr);
private slots: private slots:
void CompareTwoWays(); void CompareTwoWays();
void NegativeArc(); void NegativeArc();
void TestGetPoints_data(); void TestGetPoints_data();
void TestGetPoints(); void TestGetPoints();
private:
Q_DISABLE_COPY(TST_VEllipticalArc)
}; };
#endif // TST_VELLIPTICALARC_H #endif // TST_VELLIPTICALARC_H

View File

@ -35,7 +35,7 @@ class TST_VLayoutDetail : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VLayoutDetail(QObject *parent = 0); explicit TST_VLayoutDetail(QObject *parent = nullptr);
private slots: private slots:
void RemoveDublicates() const; void RemoveDublicates() const;

View File

@ -38,7 +38,7 @@ class TST_VPoster : public QObject
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VPoster(QObject *parent = 0); explicit TST_VPoster(QObject *parent = nullptr);
signals: signals:

View File

@ -35,7 +35,7 @@ class TST_VSpline : public AbstractTest
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit TST_VSpline(QObject *parent = 0); explicit TST_VSpline(QObject *parent = nullptr);
signals: signals: