Coverity warnings.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-13 21:14:14 +03:00
parent 8f4f294645
commit 14423990dc
16 changed files with 1856 additions and 1859 deletions

View file

@ -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;

View file

@ -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

View file

@ -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)
{

View file

@ -45,7 +45,7 @@ VBoolProperty::VBoolProperty(const QString& name) :
{
TrueText = QObject::tr("True");
}
if (TrueText.isNull())
if (FalseText.isNull())
{
FalseText = QObject::tr("False");
}

View file

@ -77,7 +77,6 @@ private slots:
private:
QColor Color;
QToolButton* ToolButton;
QLineEdit* Lineedit;
QLabel* TextLabel;
QLabel* ColorLabel;
QSpacerItem* Spacer;

View file

@ -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);

View file

@ -45,8 +45,13 @@ public:
//! Constructor
VFilePropertyPrivate()
: VPropertyPrivate(), FileFilters(), Directory(false) {}
virtual ~VFilePropertyPrivate();
};
VFilePropertyPrivate::~VFilePropertyPrivate()
{}
}
#endif // VFILEPROPERTY_P_H