Commit a5bdc150 authored by Jan Möbius's avatar Jan Möbius

Fixed cppcheck warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13336 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 792d5e28
......@@ -79,7 +79,7 @@ class Context {
void parse (QByteArray _xml);
/// Returns all available elements
const QVector<Element *>& elements () { return elements_; };
const QVector<Element *>& elements () const { return elements_; };
/// Returns all available elements for a given category
QVector<Element *> elements (QString _category);
......
......@@ -81,22 +81,22 @@ class Element {
QString name () const { return name_; };
/// Element category
const QString &category () { return category_; };
const QString &category () const { return category_; };
/// Short description
const QString &shortDescription () { return shortDesc_; };
const QString &shortDescription () const { return shortDesc_; };
/// Long description
const QString &longDescription () { return longDesc_; };
const QString &longDescription () const { return longDesc_; };
/// Inputs
const QVector<Input *> &inputs () { return inputs_; };
const QVector<Input *> &inputs () const { return inputs_; };
/// Outputs
const QVector<Output *> &outputs () { return outputs_; };
const QVector<Output *> &outputs () const { return outputs_; };
/// Functions
const QVector <Function*> &functions () { return functions_; };
const QVector <Function*> &functions () const { return functions_; };
/// Scenegraph input
Input *dataIn () { return dataIn_; };
......@@ -148,4 +148,4 @@ class Element {
}
//=============================================================================
#endif
\ No newline at end of file
#endif
......@@ -80,10 +80,10 @@ class Function {
QString name () const { return name_; };
/// Short description
const QString &shortDescription () { return shortDesc_; };
const QString &shortDescription () const { return shortDesc_; };
/// Long description
const QString &longDescription () { return longDesc_; };
const QString &longDescription () const { return longDesc_; };
/// Start element of this function
Element *start () const { return start_; };
......@@ -108,4 +108,4 @@ class Function {
}
//=============================================================================
#endif
\ No newline at end of file
#endif
......@@ -61,7 +61,7 @@ InOut::InOut (Element *_e) :
//------------------------------------------------------------------------------
/// Type
QString InOut::typeString ()
QString InOut::typeString () const
{
if (name_ == "data")
return "data";
......
......@@ -66,22 +66,22 @@ class InOut {
InOut (Element *_e);
/// Name
const QString &name () { return name_; };
const QString &name () const { return name_; };
/// Short description
const QString &shortDescription () { return shortDesc_; };
const QString &shortDescription () const { return shortDesc_; };
/// Long description
const QString &longDescription () { return longDesc_; };
const QString &longDescription () const { return longDesc_; };
/// Element of this input/output
const Element * element () { return element_; };
const Element * element () const { return element_; };
/// Parsed hints for this input/output type
QMap<QString, QString> hints () const { return hints_; };
/// Type
QString typeString ();
QString typeString () const;
friend class Context;
......
......@@ -86,7 +86,7 @@ class ElementInput : public ElementInOut {
void setValue (QString _value);
/// Returns value set by user
QString value () { return value_; };
QString value () const { return value_; };
/// Add connection
void addConnection (Connection *_conn);
......@@ -104,7 +104,7 @@ class ElementInput : public ElementInOut {
void setForceAsk (bool _set) { forceAsk_ = _set; };
/// Return "ForceAsk" flag
bool isForceAskSet () { return forceAsk_; };
bool isForceAskSet () const { return forceAsk_; };
/// VSI::Input state passthrough
unsigned int state ();
......
......@@ -76,7 +76,8 @@ namespace VSI {
/// Constructor
WayFind::WayFind(GraphicsScene *_scene) :
scene_ (_scene),
counter_ (0)
counter_ (0),
ll_(0)
{
}
......
......@@ -69,7 +69,7 @@ bool TreeItem::dataType(DataType _type) {
return true;
}
return ( dataType_ & _type);
return ( (dataType_ & _type) );
}
//--------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment