Coverity warnings.
--HG-- branch : develop
This commit is contained in:
parent
8f4f294645
commit
14423990dc
|
@ -38,6 +38,7 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QHash>
|
||||
#include <QSet>
|
||||
#include <QSharedPointer>
|
||||
|
||||
#ifdef Q_CC_GNU
|
||||
#pragma GCC diagnostic push
|
||||
|
@ -116,7 +117,6 @@ public:
|
|||
{
|
||||
throw VExceptionBadId(tr("Can't cast object"), id);
|
||||
}
|
||||
return QSharedPointer<T>();
|
||||
}
|
||||
|
||||
const QSharedPointer<VGObject> GetGObject(quint32 id) const;
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
# include <Windows.h>
|
||||
#endif /*Q_OS_WIN32*/
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
class QString;
|
||||
|
||||
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 |= ( ( i != cmEND ) && ( i != cmBC ) ) ? noEND : 0;
|
||||
m_iSynFlags |= noEND ;
|
||||
}
|
||||
else if (i == cmBO)
|
||||
{
|
||||
|
|
|
@ -45,7 +45,7 @@ VBoolProperty::VBoolProperty(const QString& name) :
|
|||
{
|
||||
TrueText = QObject::tr("True");
|
||||
}
|
||||
if (TrueText.isNull())
|
||||
if (FalseText.isNull())
|
||||
{
|
||||
FalseText = QObject::tr("False");
|
||||
}
|
||||
|
|
|
@ -77,7 +77,6 @@ private slots:
|
|||
private:
|
||||
QColor Color;
|
||||
QToolButton* ToolButton;
|
||||
QLineEdit* Lineedit;
|
||||
QLabel* TextLabel;
|
||||
QLabel* ColorLabel;
|
||||
QSpacerItem* Spacer;
|
||||
|
|
|
@ -42,7 +42,7 @@ VIntegerProperty::VIntegerProperty(const QString& name, const QMap<QString, QVar
|
|||
}
|
||||
|
||||
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.convert(QVariant::Int);
|
||||
|
|
|
@ -45,8 +45,13 @@ public:
|
|||
//! Constructor
|
||||
VFilePropertyPrivate()
|
||||
: VPropertyPrivate(), FileFilters(), Directory(false) {}
|
||||
|
||||
virtual ~VFilePropertyPrivate();
|
||||
};
|
||||
|
||||
VFilePropertyPrivate::~VFilePropertyPrivate()
|
||||
{}
|
||||
|
||||
}
|
||||
|
||||
#endif // VFILEPROPERTY_P_H
|
||||
|
|
Loading…
Reference in New Issue
Block a user