Coverity scan missing includes.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-10-18 22:30:51 +03:00
parent 7a14bf255b
commit 65d2213ef9
22 changed files with 39 additions and 0 deletions

View File

@ -34,6 +34,8 @@
#include <QDate> #include <QDate>
#include <QDesktopServices> #include <QDesktopServices>
#include <QMessageBox> #include <QMessageBox>
#include <QUrl>
#include <QtDebug>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
DialogAboutTape::DialogAboutTape(QWidget *parent) DialogAboutTape::DialogAboutTape(QWidget *parent)

View File

@ -30,6 +30,7 @@
#include "mapplication.h" #include "mapplication.h"
#include <QMessageBox> // For QT_REQUIRE_VERSION #include <QMessageBox> // For QT_REQUIRE_VERSION
#include <QTimer>
// Lock producing random attribute order in XML // Lock producing random attribute order in XML
// https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml // https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml

View File

@ -49,6 +49,7 @@
#include <iostream> #include <iostream>
#include <QGridLayout> #include <QGridLayout>
#include <QSpacerItem> #include <QSpacerItem>
#include <QThread>
Q_LOGGING_CATEGORY(mApp, "m.application") Q_LOGGING_CATEGORY(mApp, "m.application")

View File

@ -50,6 +50,7 @@
#include <QThread> #include <QThread>
#include <QDateTime> #include <QDateTime>
#include <QtXmlPatterns> #include <QtXmlPatterns>
#include <QIcon>
Q_LOGGING_CATEGORY(vApp, "v.application") Q_LOGGING_CATEGORY(vApp, "v.application")

View File

@ -32,6 +32,7 @@
#include <QDate> #include <QDate>
#include <QDesktopServices> #include <QDesktopServices>
#include <QMessageBox> #include <QMessageBox>
#include <QtDebug>
#include "../options.h" #include "../options.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"

View File

@ -33,6 +33,8 @@
#include <QMessageBox> #include <QMessageBox>
#include <QPushButton> #include <QPushButton>
#include <QMovie>
#include <QtDebug>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
DialogLayoutProgress::DialogLayoutProgress(int count, QWidget *parent) DialogLayoutProgress::DialogLayoutProgress(int count, QWidget *parent)

View File

@ -29,6 +29,7 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "core/vapplication.h" #include "core/vapplication.h"
#include <QMessageBox> // For QT_REQUIRE_VERSION #include <QMessageBox> // For QT_REQUIRE_VERSION
#include <QTimer>
// Lock producing random attribute order in XML // Lock producing random attribute order in XML
// https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml // https://stackoverflow.com/questions/27378143/qt-5-produce-random-attribute-order-in-xml

View File

@ -32,6 +32,7 @@
#include <QFile> #include <QFile>
#include <QFileInfo> #include <QFileInfo>
#include <QDir>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VAbstractConverter::VAbstractConverter(const QString &fileName) VAbstractConverter::VAbstractConverter(const QString &fileName)
@ -174,6 +175,7 @@ void VAbstractConverter::Replace(QString &formula, const QString &newName, int p
bias = token.length() - newName.length(); bias = token.length() - newName.length();
} }
//---------------------------------------------------------------------------------------------------------------------
void VAbstractConverter::CorrectionsPositions(int position, int bias, QMap<int, QString> &tokens) const void VAbstractConverter::CorrectionsPositions(int position, int bias, QMap<int, QString> &tokens) const
{ {
if (bias == 0) if (bias == 0)

View File

@ -21,6 +21,8 @@
#include "qmuformulabase.h" #include "qmuformulabase.h"
#include <QLocale>
namespace qmu namespace qmu
{ {

View File

@ -29,6 +29,8 @@
#ifndef DXFDEF_H #ifndef DXFDEF_H
#define DXFDEF_H #define DXFDEF_H
#include <QtGlobal>
enum class VarMeasurement : unsigned char { English=0, Metric=1 }; enum class VarMeasurement : unsigned char { English=0, Metric=1 };
//Default drawing units for AutoCAD DesignCenter blocks: //Default drawing units for AutoCAD DesignCenter blocks:

View File

@ -33,6 +33,8 @@
#include "../vpatterndb/calculator.h" #include "../vpatterndb/calculator.h"
#include "../qmuparser/qmutokenparser.h" #include "../qmuparser/qmutokenparser.h"
#include <QDate>
const QString VMeasurements::TagVST = QStringLiteral("vst"); const QString VMeasurements::TagVST = QStringLiteral("vst");
const QString VMeasurements::TagVIT = QStringLiteral("vit"); const QString VMeasurements::TagVIT = QStringLiteral("vit");
const QString VMeasurements::TagBodyMeasurements = QStringLiteral("body-measurements"); const QString VMeasurements::TagBodyMeasurements = QStringLiteral("body-measurements");

View File

@ -30,6 +30,9 @@
#include "../vmisc/def.h" #include "../vmisc/def.h"
#include <QLibraryInfo> #include <QLibraryInfo>
#include <QLoggingCategory>
#include <QTranslator>
#include <QtDebug>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VAbstractApplication::VAbstractApplication(int &argc, char **argv) VAbstractApplication::VAbstractApplication(int &argc, char **argv)

View File

@ -29,6 +29,9 @@
#include "vmeasurement.h" #include "vmeasurement.h"
#include "vmeasurement_p.h" #include "vmeasurement_p.h"
#include <QMap>
#include <QtDebug>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief VMeasurement create measurement for standard table * @brief VMeasurement create measurement for standard table

View File

@ -32,6 +32,7 @@
#include "../vgeometry/vpointf.h" #include "../vgeometry/vpointf.h"
#include <QDebug> #include <QDebug>
#include <QPainterPath>
#include <QString> #include <QString>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -33,6 +33,9 @@
#include "../qmuparser/qmutokenparser.h" #include "../qmuparser/qmutokenparser.h"
#include "../ifc/ifcdef.h" #include "../ifc/ifcdef.h"
#include <QLocale>
#include <QtDebug>
using namespace qmu; using namespace qmu;
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -36,6 +36,8 @@
#include "../../../vwidgets/vmaingraphicsscene.h" #include "../../../vwidgets/vmaingraphicsscene.h"
#include "../support/dialogeditwrongformula.h" #include "../support/dialogeditwrongformula.h"
#include <QTimer>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
DialogPointFromCircleAndTangent::DialogPointFromCircleAndTangent(const VContainer *data, const quint32 &toolId, DialogPointFromCircleAndTangent::DialogPointFromCircleAndTangent(const VContainer *data, const quint32 &toolId,
QWidget *parent) QWidget *parent)

View File

@ -36,6 +36,8 @@
#include "../../../vwidgets/vmaingraphicsscene.h" #include "../../../vwidgets/vmaingraphicsscene.h"
#include "../support/dialogeditwrongformula.h" #include "../support/dialogeditwrongformula.h"
#include <QTimer>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
DialogPointOfIntersectionCircles::DialogPointOfIntersectionCircles(const VContainer *data, const quint32 &toolId, DialogPointOfIntersectionCircles::DialogPointOfIntersectionCircles(const VContainer *data, const quint32 &toolId,
QWidget *parent) QWidget *parent)

View File

@ -31,6 +31,8 @@
#include "../vgeometry/vpointf.h" #include "../vgeometry/vpointf.h"
#include "../../../../undocommands/movedoublelabel.h" #include "../../../../undocommands/movedoublelabel.h"
#include <QKeyEvent>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VToolDoublePoint::VToolDoublePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 p1id, quint32 p2id, VToolDoublePoint::VToolDoublePoint(VAbstractPattern *doc, VContainer *data, quint32 id, quint32 p1id, quint32 p2id,
QGraphicsItem *parent) QGraphicsItem *parent)

View File

@ -30,6 +30,8 @@
#define VABSTRACTSIMPLE_H #define VABSTRACTSIMPLE_H
#include <QObject> #include <QObject>
#include <QPen>
#include <QColor>
#include "../vmisc/def.h" #include "../vmisc/def.h"
class VAbstractSimple : public QObject class VAbstractSimple : public QObject

View File

@ -34,6 +34,7 @@
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QStyleOptionGraphicsItem> #include <QStyleOptionGraphicsItem>
#include <QPen>
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VSimplePoint::VSimplePoint(quint32 id, const QColor &currentColor, Unit patternUnit, qreal *factor, QObject *parent) VSimplePoint::VSimplePoint(quint32 id, const QColor &currentColor, Unit patternUnit, qreal *factor, QObject *parent)

View File

@ -31,6 +31,8 @@
#include "abstracttest.h" #include "abstracttest.h"
#include <QPointer>
class QTranslator; class QTranslator;
class VTranslateMeasurements; class VTranslateMeasurements;

View File

@ -33,6 +33,7 @@
#include "../qmuparser/qmuparsererror.h" #include "../qmuparser/qmuparsererror.h"
#include <QTranslator> #include <QTranslator>
#include <QPointer>
class TST_QmuParserErrorMsg : public AbstractTest class TST_QmuParserErrorMsg : public AbstractTest
{ {