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