From c6643062b6a0a51a378485a4613f1ff4f016d356 Mon Sep 17 00:00:00 2001 From: theirix Date: Fri, 2 Sep 2016 22:33:12 +0300 Subject: [PATCH 1/2] Removed unneeded self-cast operators They are not used and caused a lot of warnings while compiling and using AMQP-CPP --- include/array.h | 10 ---------- include/table.h | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/include/array.h b/include/array.h index a86f1be..0ae9246 100644 --- a/include/array.h +++ b/include/array.h @@ -218,16 +218,6 @@ public: // postfix 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; - } }; /** diff --git a/include/table.h b/include/table.h index fd90bed..30df4d5 100644 --- a/include/table.h +++ b/include/table.h @@ -242,16 +242,6 @@ public: // postfix 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; - } }; /** From e6e70e69de08ee55cbc6ba7ccb571c3d4f0482fd Mon Sep 17 00:00:00 2001 From: theirix Date: Fri, 2 Sep 2016 22:44:11 +0300 Subject: [PATCH 2/2] Removed unneeded const qual --- src/basiccancelframe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basiccancelframe.h b/src/basiccancelframe.h index e665ab2..6dd26dd 100644 --- a/src/basiccancelframe.h +++ b/src/basiccancelframe.h @@ -102,7 +102,7 @@ public: * Return whether to wait for a response * @return boolean */ - const bool noWait() const + bool noWait() const { return _noWait.get(0); }