Merge pull request #94 from theirix/self-casts

Fixed warnings: self-casts, const qual
This commit is contained in:
Emiel Bruijntjes 2016-09-02 22:07:39 +02:00 committed by GitHub
commit c1b88fd42b
3 changed files with 1 additions and 21 deletions

View File

@ -218,16 +218,6 @@ public:
// postfix // postfix
stream << ")"; stream << ")";
} }
/**
* Cast to array (compiler will probably never call this method)
* @return Array
*/
virtual operator const Array& () const override
{
// this already is an array, so no cast is necessary
return *this;
}
}; };
/** /**

View File

@ -242,16 +242,6 @@ public:
// postfix // postfix
stream << ")"; stream << ")";
} }
/**
* Cast to table (compiler will probably never call this method)
* @return Table
*/
virtual operator const Table& () const override
{
// this already is an array, so no cast is necessary
return *this;
}
}; };
/** /**

View File

@ -102,7 +102,7 @@ public:
* Return whether to wait for a response * Return whether to wait for a response
* @return boolean * @return boolean
*/ */
const bool noWait() const bool noWait() const
{ {
return _noWait.get(0); return _noWait.get(0);
} }