From 65d2213ef9730c7da0499bb4f82e5424fc5b966a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 18 Oct 2015 22:30:51 +0300 Subject: [PATCH] Coverity scan missing includes. --HG-- branch : develop --- src/app/tape/dialogs/dialogabouttape.cpp | 2 ++ src/app/tape/main.cpp | 1 + src/app/tape/mapplication.cpp | 1 + src/app/valentina/core/vapplication.cpp | 1 + src/app/valentina/dialogs/dialogaboutapp.cpp | 1 + src/app/valentina/dialogs/dialoglayoutprogress.cpp | 2 ++ src/app/valentina/main.cpp | 1 + src/libs/ifc/xml/vabstractconverter.cpp | 2 ++ src/libs/qmuparser/qmuformulabase.cpp | 2 ++ src/libs/vdxf/dxfdef.h | 2 ++ src/libs/vformat/vmeasurements.cpp | 2 ++ src/libs/vmisc/vabstractapplication.cpp | 3 +++ src/libs/vpatterndb/variables/vmeasurement.cpp | 3 +++ src/libs/vpatterndb/vdetail.cpp | 1 + src/libs/vpatterndb/vtranslatevars.cpp | 3 +++ .../vtools/dialogs/tools/dialogpointfromcircleandtangent.cpp | 2 ++ .../vtools/dialogs/tools/dialogpointofintersectioncircles.cpp | 2 ++ .../drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp | 2 ++ src/libs/vwidgets/vabstractsimple.h | 2 ++ src/libs/vwidgets/vsimplepoint.cpp | 1 + src/test/ValentinaTest/tst_measurementregexp.h | 2 ++ src/test/ValentinaTest/tst_qmuparsererrormsg.h | 1 + 22 files changed, 39 insertions(+) diff --git a/src/app/tape/dialogs/dialogabouttape.cpp b/src/app/tape/dialogs/dialogabouttape.cpp index 23a95bad7..afeeab282 100644 --- a/src/app/tape/dialogs/dialogabouttape.cpp +++ b/src/app/tape/dialogs/dialogabouttape.cpp @@ -34,6 +34,8 @@ #include #include #include +#include +#include //--------------------------------------------------------------------------------------------------------------------- DialogAboutTape::DialogAboutTape(QWidget *parent) diff --git a/src/app/tape/main.cpp b/src/app/tape/main.cpp index 6e2f83a3f..d1ef6b158 100644 --- a/src/app/tape/main.cpp +++ b/src/app/tape/main.cpp @@ -30,6 +30,7 @@ #include "mapplication.h" #include // For QT_REQUIRE_VERSION +#include // Lock producing random attribute order in XML // https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml diff --git a/src/app/tape/mapplication.cpp b/src/app/tape/mapplication.cpp index d24076928..538b0aaa6 100644 --- a/src/app/tape/mapplication.cpp +++ b/src/app/tape/mapplication.cpp @@ -49,6 +49,7 @@ #include #include #include +#include Q_LOGGING_CATEGORY(mApp, "m.application") diff --git a/src/app/valentina/core/vapplication.cpp b/src/app/valentina/core/vapplication.cpp index cad9af09f..f5acfc504 100644 --- a/src/app/valentina/core/vapplication.cpp +++ b/src/app/valentina/core/vapplication.cpp @@ -50,6 +50,7 @@ #include #include #include +#include Q_LOGGING_CATEGORY(vApp, "v.application") diff --git a/src/app/valentina/dialogs/dialogaboutapp.cpp b/src/app/valentina/dialogs/dialogaboutapp.cpp index ed677aec3..f8cad0ddb 100644 --- a/src/app/valentina/dialogs/dialogaboutapp.cpp +++ b/src/app/valentina/dialogs/dialogaboutapp.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include "../options.h" #include "../core/vapplication.h" diff --git a/src/app/valentina/dialogs/dialoglayoutprogress.cpp b/src/app/valentina/dialogs/dialoglayoutprogress.cpp index 8d1ac7bd4..ae89fa76c 100644 --- a/src/app/valentina/dialogs/dialoglayoutprogress.cpp +++ b/src/app/valentina/dialogs/dialoglayoutprogress.cpp @@ -33,6 +33,8 @@ #include #include +#include +#include //--------------------------------------------------------------------------------------------------------------------- DialogLayoutProgress::DialogLayoutProgress(int count, QWidget *parent) diff --git a/src/app/valentina/main.cpp b/src/app/valentina/main.cpp index 514b86b14..01c96b0f9 100644 --- a/src/app/valentina/main.cpp +++ b/src/app/valentina/main.cpp @@ -29,6 +29,7 @@ #include "mainwindow.h" #include "core/vapplication.h" #include // For QT_REQUIRE_VERSION +#include // Lock producing random attribute order in XML // https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml diff --git a/src/libs/ifc/xml/vabstractconverter.cpp b/src/libs/ifc/xml/vabstractconverter.cpp index 580e1a9c2..e887b6a0f 100644 --- a/src/libs/ifc/xml/vabstractconverter.cpp +++ b/src/libs/ifc/xml/vabstractconverter.cpp @@ -32,6 +32,7 @@ #include #include +#include //--------------------------------------------------------------------------------------------------------------------- VAbstractConverter::VAbstractConverter(const QString &fileName) @@ -174,6 +175,7 @@ void VAbstractConverter::Replace(QString &formula, const QString &newName, int p bias = token.length() - newName.length(); } +//--------------------------------------------------------------------------------------------------------------------- void VAbstractConverter::CorrectionsPositions(int position, int bias, QMap &tokens) const { if (bias == 0) diff --git a/src/libs/qmuparser/qmuformulabase.cpp b/src/libs/qmuparser/qmuformulabase.cpp index a734acbcf..28ec9ef66 100644 --- a/src/libs/qmuparser/qmuformulabase.cpp +++ b/src/libs/qmuparser/qmuformulabase.cpp @@ -21,6 +21,8 @@ #include "qmuformulabase.h" +#include + namespace qmu { diff --git a/src/libs/vdxf/dxfdef.h b/src/libs/vdxf/dxfdef.h index d9cc7a44b..6d70eada1 100644 --- a/src/libs/vdxf/dxfdef.h +++ b/src/libs/vdxf/dxfdef.h @@ -29,6 +29,8 @@ #ifndef DXFDEF_H #define DXFDEF_H +#include + enum class VarMeasurement : unsigned char { English=0, Metric=1 }; //Default drawing units for AutoCAD DesignCenter blocks: diff --git a/src/libs/vformat/vmeasurements.cpp b/src/libs/vformat/vmeasurements.cpp index e2f151596..ad5e401a8 100644 --- a/src/libs/vformat/vmeasurements.cpp +++ b/src/libs/vformat/vmeasurements.cpp @@ -33,6 +33,8 @@ #include "../vpatterndb/calculator.h" #include "../qmuparser/qmutokenparser.h" +#include + const QString VMeasurements::TagVST = QStringLiteral("vst"); const QString VMeasurements::TagVIT = QStringLiteral("vit"); const QString VMeasurements::TagBodyMeasurements = QStringLiteral("body-measurements"); diff --git a/src/libs/vmisc/vabstractapplication.cpp b/src/libs/vmisc/vabstractapplication.cpp index dbafdd548..5be987414 100644 --- a/src/libs/vmisc/vabstractapplication.cpp +++ b/src/libs/vmisc/vabstractapplication.cpp @@ -30,6 +30,9 @@ #include "../vmisc/def.h" #include +#include +#include +#include //--------------------------------------------------------------------------------------------------------------------- VAbstractApplication::VAbstractApplication(int &argc, char **argv) diff --git a/src/libs/vpatterndb/variables/vmeasurement.cpp b/src/libs/vpatterndb/variables/vmeasurement.cpp index 1a85eb2ca..2cde882ea 100644 --- a/src/libs/vpatterndb/variables/vmeasurement.cpp +++ b/src/libs/vpatterndb/variables/vmeasurement.cpp @@ -29,6 +29,9 @@ #include "vmeasurement.h" #include "vmeasurement_p.h" +#include +#include + //--------------------------------------------------------------------------------------------------------------------- /** * @brief VMeasurement create measurement for standard table diff --git a/src/libs/vpatterndb/vdetail.cpp b/src/libs/vpatterndb/vdetail.cpp index c8a4b382a..e5370d4ce 100644 --- a/src/libs/vpatterndb/vdetail.cpp +++ b/src/libs/vpatterndb/vdetail.cpp @@ -32,6 +32,7 @@ #include "../vgeometry/vpointf.h" #include +#include #include //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vpatterndb/vtranslatevars.cpp b/src/libs/vpatterndb/vtranslatevars.cpp index e10ea55fb..923e3ee48 100644 --- a/src/libs/vpatterndb/vtranslatevars.cpp +++ b/src/libs/vpatterndb/vtranslatevars.cpp @@ -33,6 +33,9 @@ #include "../qmuparser/qmutokenparser.h" #include "../ifc/ifcdef.h" +#include +#include + using namespace qmu; //--------------------------------------------------------------------------------------------------------------------- diff --git a/src/libs/vtools/dialogs/tools/dialogpointfromcircleandtangent.cpp b/src/libs/vtools/dialogs/tools/dialogpointfromcircleandtangent.cpp index 90528d2e0..78f43914f 100644 --- a/src/libs/vtools/dialogs/tools/dialogpointfromcircleandtangent.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpointfromcircleandtangent.cpp @@ -36,6 +36,8 @@ #include "../../../vwidgets/vmaingraphicsscene.h" #include "../support/dialogeditwrongformula.h" +#include + //--------------------------------------------------------------------------------------------------------------------- DialogPointFromCircleAndTangent::DialogPointFromCircleAndTangent(const VContainer *data, const quint32 &toolId, QWidget *parent) diff --git a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp index 49920dc9d..fd62d9f5d 100644 --- a/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp +++ b/src/libs/vtools/dialogs/tools/dialogpointofintersectioncircles.cpp @@ -36,6 +36,8 @@ #include "../../../vwidgets/vmaingraphicsscene.h" #include "../support/dialogeditwrongformula.h" +#include + //--------------------------------------------------------------------------------------------------------------------- DialogPointOfIntersectionCircles::DialogPointOfIntersectionCircles(const VContainer *data, const quint32 &toolId, QWidget *parent) diff --git a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp index eb4e71ff0..7aea0cd8e 100644 --- a/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp +++ b/src/libs/vtools/tools/drawTools/toolpoint/tooldoublepoint/vtooldoublepoint.cpp @@ -31,6 +31,8 @@ #include "../vgeometry/vpointf.h" #include "../../../../undocommands/movedoublelabel.h" +#include + //--------------------------------------------------------------------------------------------------------------------- VToolDoublePoint::VToolDoublePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 p1id, quint32 p2id, QGraphicsItem *parent) diff --git a/src/libs/vwidgets/vabstractsimple.h b/src/libs/vwidgets/vabstractsimple.h index 936c547fb..bcebd73d1 100644 --- a/src/libs/vwidgets/vabstractsimple.h +++ b/src/libs/vwidgets/vabstractsimple.h @@ -30,6 +30,8 @@ #define VABSTRACTSIMPLE_H #include +#include +#include #include "../vmisc/def.h" class VAbstractSimple : public QObject diff --git a/src/libs/vwidgets/vsimplepoint.cpp b/src/libs/vwidgets/vsimplepoint.cpp index ff4a731ff..5cca38fdd 100644 --- a/src/libs/vwidgets/vsimplepoint.cpp +++ b/src/libs/vwidgets/vsimplepoint.cpp @@ -34,6 +34,7 @@ #include #include +#include //--------------------------------------------------------------------------------------------------------------------- VSimplePoint::VSimplePoint(quint32 id, const QColor ¤tColor, Unit patternUnit, qreal *factor, QObject *parent) diff --git a/src/test/ValentinaTest/tst_measurementregexp.h b/src/test/ValentinaTest/tst_measurementregexp.h index 4eaee04c5..8969a8620 100644 --- a/src/test/ValentinaTest/tst_measurementregexp.h +++ b/src/test/ValentinaTest/tst_measurementregexp.h @@ -31,6 +31,8 @@ #include "abstracttest.h" +#include + class QTranslator; class VTranslateMeasurements; diff --git a/src/test/ValentinaTest/tst_qmuparsererrormsg.h b/src/test/ValentinaTest/tst_qmuparsererrormsg.h index 7f5d67054..6a40e206f 100644 --- a/src/test/ValentinaTest/tst_qmuparsererrormsg.h +++ b/src/test/ValentinaTest/tst_qmuparsererrormsg.h @@ -33,6 +33,7 @@ #include "../qmuparser/qmuparsererror.h" #include +#include class TST_QmuParserErrorMsg : public AbstractTest {