Coverity warnings.
--HG-- branch : develop
This commit is contained in:
parent
8f4f294645
commit
14423990dc
|
@ -38,6 +38,7 @@
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QHash>
|
#include <QHash>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
|
#include <QSharedPointer>
|
||||||
|
|
||||||
#ifdef Q_CC_GNU
|
#ifdef Q_CC_GNU
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
|
@ -116,7 +117,6 @@ public:
|
||||||
{
|
{
|
||||||
throw VExceptionBadId(tr("Can't cast object"), id);
|
throw VExceptionBadId(tr("Can't cast object"), id);
|
||||||
}
|
}
|
||||||
return QSharedPointer<T>();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const QSharedPointer<VGObject> GetGObject(quint32 id) const;
|
const QSharedPointer<VGObject> GetGObject(quint32 id) const;
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
# include <Windows.h>
|
# include <Windows.h>
|
||||||
#endif /*Q_OS_WIN32*/
|
#endif /*Q_OS_WIN32*/
|
||||||
|
|
||||||
|
#include <QtGlobal>
|
||||||
|
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
static const quint32 null_id = 0;
|
static const quint32 null_id = 0;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -413,7 +413,7 @@ bool QmuParserTokenReader::IsBuiltIn ( token_type &a_Tok )
|
||||||
}
|
}
|
||||||
|
|
||||||
m_iSynFlags = noBC | noOPT | noARG_SEP | noPOSTOP | noASSIGN | noIF | noELSE;
|
m_iSynFlags = noBC | noOPT | noARG_SEP | noPOSTOP | noASSIGN | noIF | noELSE;
|
||||||
m_iSynFlags |= ( ( i != cmEND ) && ( i != cmBC ) ) ? noEND : 0;
|
m_iSynFlags |= noEND ;
|
||||||
}
|
}
|
||||||
else if (i == cmBO)
|
else if (i == cmBO)
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ VBoolProperty::VBoolProperty(const QString& name) :
|
||||||
{
|
{
|
||||||
TrueText = QObject::tr("True");
|
TrueText = QObject::tr("True");
|
||||||
}
|
}
|
||||||
if (TrueText.isNull())
|
if (FalseText.isNull())
|
||||||
{
|
{
|
||||||
FalseText = QObject::tr("False");
|
FalseText = QObject::tr("False");
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,6 @@ private slots:
|
||||||
private:
|
private:
|
||||||
QColor Color;
|
QColor Color;
|
||||||
QToolButton* ToolButton;
|
QToolButton* ToolButton;
|
||||||
QLineEdit* Lineedit;
|
|
||||||
QLabel* TextLabel;
|
QLabel* TextLabel;
|
||||||
QLabel* ColorLabel;
|
QLabel* ColorLabel;
|
||||||
QSpacerItem* Spacer;
|
QSpacerItem* Spacer;
|
||||||
|
|
|
@ -42,7 +42,7 @@ VIntegerProperty::VIntegerProperty(const QString& name, const QMap<QString, QVar
|
||||||
}
|
}
|
||||||
|
|
||||||
VIntegerProperty::VIntegerProperty(const QString &name)
|
VIntegerProperty::VIntegerProperty(const QString &name)
|
||||||
: VProperty(name), minValue(StandardMin), maxValue(StandardMax)
|
: VProperty(name), minValue(StandardMin), maxValue(StandardMax), singleStep(1.0)
|
||||||
{
|
{
|
||||||
VProperty::d_ptr->VariantValue.setValue(0);
|
VProperty::d_ptr->VariantValue.setValue(0);
|
||||||
VProperty::d_ptr->VariantValue.convert(QVariant::Int);
|
VProperty::d_ptr->VariantValue.convert(QVariant::Int);
|
||||||
|
|
|
@ -45,8 +45,13 @@ public:
|
||||||
//! Constructor
|
//! Constructor
|
||||||
VFilePropertyPrivate()
|
VFilePropertyPrivate()
|
||||||
: VPropertyPrivate(), FileFilters(), Directory(false) {}
|
: VPropertyPrivate(), FileFilters(), Directory(false) {}
|
||||||
|
|
||||||
|
virtual ~VFilePropertyPrivate();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
VFilePropertyPrivate::~VFilePropertyPrivate()
|
||||||
|
{}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // VFILEPROPERTY_P_H
|
#endif // VFILEPROPERTY_P_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user