From e1837d1b0381ce7857fddb0119ebb2f6567489c0 Mon Sep 17 00:00:00 2001 From: Valentina Zhuravska Date: Wed, 24 Feb 2016 17:31:44 +0200 Subject: [PATCH] Little optimization: change parent = 0 to parent = nullptr --HG-- branch : feature --- src/test/ValentinaTest/abstracttest.h | 2 +- src/test/ValentinaTest/tst_measurementregexp.h | 2 +- src/test/ValentinaTest/tst_nameregexp.h | 2 +- src/test/ValentinaTest/tst_qmutokenparser.h | 2 +- src/test/ValentinaTest/tst_tapecommandline.h | 2 +- src/test/ValentinaTest/tst_tstranslation.h | 2 +- src/test/ValentinaTest/tst_vabstractdetail.h | 2 +- src/test/ValentinaTest/tst_valentinacommandline.h | 2 +- src/test/ValentinaTest/tst_varc.h | 2 +- src/test/ValentinaTest/tst_vellipticalarc.h | 5 ++++- src/test/ValentinaTest/tst_vlayoutdetail.h | 2 +- src/test/ValentinaTest/tst_vposter.h | 2 +- src/test/ValentinaTest/tst_vspline.h | 2 +- 13 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/test/ValentinaTest/abstracttest.h b/src/test/ValentinaTest/abstracttest.h index 1932c7347..750e8a153 100644 --- a/src/test/ValentinaTest/abstracttest.h +++ b/src/test/ValentinaTest/abstracttest.h @@ -46,7 +46,7 @@ class AbstractTest : public QObject { Q_OBJECT public: - explicit AbstractTest(QObject *parent = 0); + explicit AbstractTest(QObject *parent = nullptr); protected: void Comparison(const QVector &ekv, const QVector &ekvOrig) const; diff --git a/src/test/ValentinaTest/tst_measurementregexp.h b/src/test/ValentinaTest/tst_measurementregexp.h index f9004585e..322a6e9d9 100644 --- a/src/test/ValentinaTest/tst_measurementregexp.h +++ b/src/test/ValentinaTest/tst_measurementregexp.h @@ -40,7 +40,7 @@ class TST_MeasurementRegExp : public AbstractTest { Q_OBJECT public: - explicit TST_MeasurementRegExp(QObject *parent = 0); + explicit TST_MeasurementRegExp(QObject *parent = nullptr); virtual ~TST_MeasurementRegExp() Q_DECL_OVERRIDE; private slots: diff --git a/src/test/ValentinaTest/tst_nameregexp.h b/src/test/ValentinaTest/tst_nameregexp.h index fc20cc349..12e863bea 100644 --- a/src/test/ValentinaTest/tst_nameregexp.h +++ b/src/test/ValentinaTest/tst_nameregexp.h @@ -35,7 +35,7 @@ class TST_NameRegExp : public QObject { Q_OBJECT public: - explicit TST_NameRegExp(QObject *parent = 0); + explicit TST_NameRegExp(QObject *parent = nullptr); signals: diff --git a/src/test/ValentinaTest/tst_qmutokenparser.h b/src/test/ValentinaTest/tst_qmutokenparser.h index 1431594d3..22930d27d 100644 --- a/src/test/ValentinaTest/tst_qmutokenparser.h +++ b/src/test/ValentinaTest/tst_qmutokenparser.h @@ -36,7 +36,7 @@ class TST_QmuTokenParser : public QObject Q_OBJECT public: Q_DISABLE_COPY(TST_QmuTokenParser) - explicit TST_QmuTokenParser(QObject *parent = 0); + explicit TST_QmuTokenParser(QObject *parent = nullptr); private slots: void IsSingle_data(); diff --git a/src/test/ValentinaTest/tst_tapecommandline.h b/src/test/ValentinaTest/tst_tapecommandline.h index a1ab5b18f..0206497e4 100644 --- a/src/test/ValentinaTest/tst_tapecommandline.h +++ b/src/test/ValentinaTest/tst_tapecommandline.h @@ -35,7 +35,7 @@ class TST_TapeCommandLine : public AbstractTest { Q_OBJECT public: - explicit TST_TapeCommandLine(QObject *parent = 0); + explicit TST_TapeCommandLine(QObject *parent = nullptr); private slots: void init(); diff --git a/src/test/ValentinaTest/tst_tstranslation.h b/src/test/ValentinaTest/tst_tstranslation.h index 3bac4e1e3..fb7fa45e3 100644 --- a/src/test/ValentinaTest/tst_tstranslation.h +++ b/src/test/ValentinaTest/tst_tstranslation.h @@ -38,7 +38,7 @@ class TST_TSTranslation : public QObject { Q_OBJECT public: - explicit TST_TSTranslation(QObject *parent = 0); + explicit TST_TSTranslation(QObject *parent = nullptr); private slots: void CheckEnglishLocalization(); diff --git a/src/test/ValentinaTest/tst_vabstractdetail.h b/src/test/ValentinaTest/tst_vabstractdetail.h index fc8759e92..ea45ab650 100644 --- a/src/test/ValentinaTest/tst_vabstractdetail.h +++ b/src/test/ValentinaTest/tst_vabstractdetail.h @@ -35,7 +35,7 @@ class TST_VAbstractDetail : public AbstractTest { Q_OBJECT public: - explicit TST_VAbstractDetail(QObject *parent = 0); + explicit TST_VAbstractDetail(QObject *parent = nullptr); signals: diff --git a/src/test/ValentinaTest/tst_valentinacommandline.h b/src/test/ValentinaTest/tst_valentinacommandline.h index eb3459436..92c3db54a 100644 --- a/src/test/ValentinaTest/tst_valentinacommandline.h +++ b/src/test/ValentinaTest/tst_valentinacommandline.h @@ -35,7 +35,7 @@ class TST_ValentinaCommandLine : public AbstractTest { Q_OBJECT public: - explicit TST_ValentinaCommandLine(QObject *parent = 0); + explicit TST_ValentinaCommandLine(QObject *parent = nullptr); private slots: void init(); diff --git a/src/test/ValentinaTest/tst_varc.h b/src/test/ValentinaTest/tst_varc.h index de4ce7eb7..997533627 100644 --- a/src/test/ValentinaTest/tst_varc.h +++ b/src/test/ValentinaTest/tst_varc.h @@ -35,7 +35,7 @@ class TST_VArc : public QObject { Q_OBJECT public: - explicit TST_VArc(QObject *parent = 0); + explicit TST_VArc(QObject *parent = nullptr); private slots: void CompareTwoWays(); diff --git a/src/test/ValentinaTest/tst_vellipticalarc.h b/src/test/ValentinaTest/tst_vellipticalarc.h index 21a0a408f..7a9e67c4b 100644 --- a/src/test/ValentinaTest/tst_vellipticalarc.h +++ b/src/test/ValentinaTest/tst_vellipticalarc.h @@ -35,13 +35,16 @@ class TST_VEllipticalArc : public QObject { Q_OBJECT public: - explicit TST_VEllipticalArc(QObject *parent = 0); + explicit TST_VEllipticalArc(QObject *parent = nullptr); private slots: void CompareTwoWays(); void NegativeArc(); void TestGetPoints_data(); void TestGetPoints(); + +private: + Q_DISABLE_COPY(TST_VEllipticalArc) }; #endif // TST_VELLIPTICALARC_H diff --git a/src/test/ValentinaTest/tst_vlayoutdetail.h b/src/test/ValentinaTest/tst_vlayoutdetail.h index 2b0f08509..e67988ccf 100644 --- a/src/test/ValentinaTest/tst_vlayoutdetail.h +++ b/src/test/ValentinaTest/tst_vlayoutdetail.h @@ -35,7 +35,7 @@ class TST_VLayoutDetail : public AbstractTest { Q_OBJECT public: - explicit TST_VLayoutDetail(QObject *parent = 0); + explicit TST_VLayoutDetail(QObject *parent = nullptr); private slots: void RemoveDublicates() const; diff --git a/src/test/ValentinaTest/tst_vposter.h b/src/test/ValentinaTest/tst_vposter.h index 6fd218d1f..bb403da84 100644 --- a/src/test/ValentinaTest/tst_vposter.h +++ b/src/test/ValentinaTest/tst_vposter.h @@ -38,7 +38,7 @@ class TST_VPoster : public QObject Q_OBJECT public: - explicit TST_VPoster(QObject *parent = 0); + explicit TST_VPoster(QObject *parent = nullptr); signals: diff --git a/src/test/ValentinaTest/tst_vspline.h b/src/test/ValentinaTest/tst_vspline.h index efcf8b2f4..6891b6675 100644 --- a/src/test/ValentinaTest/tst_vspline.h +++ b/src/test/ValentinaTest/tst_vspline.h @@ -35,7 +35,7 @@ class TST_VSpline : public AbstractTest { Q_OBJECT public: - explicit TST_VSpline(QObject *parent = 0); + explicit TST_VSpline(QObject *parent = nullptr); signals: