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

View file

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

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

View file

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

View file

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

View file

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

View file

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