fix voidfield issue

This commit is contained in:
Michael van der Werve 2020-10-15 09:41:59 +02:00
parent 5af76d874e
commit 61f4cf244b
1 changed files with 7 additions and 18 deletions

View File

@ -13,7 +13,6 @@
* Dependencies * Dependencies
*/ */
#include <memory> #include <memory>
#include "receivedframe.h"
#include "outbuffer.h" #include "outbuffer.h"
#include "field.h" #include "field.h"
@ -24,30 +23,22 @@ namespace AMQP
{ {
class VoidField : public Field class VoidField : public Field
{ {
private:
/**
* Field have no value
*/
public: public:
/** /**
* Default constructor * Default constructor
*/ */
VoidField() {} VoidField() = default;
/** /**
* Parse based on incoming buffer * Construct based on incoming data
* @param frame * @param frame
*/ */
VoidField(ReceivedFrame &frame) VoidField(InBuffer &frame) {}
{
}
/** /**
* Destructor * Destructor
*/ */
virtual ~VoidField() {} virtual ~VoidField() = default;
/** /**
* Create a new instance of this object * Create a new instance of this object
@ -74,9 +65,7 @@ public:
* Write encoded payload to the given buffer. * Write encoded payload to the given buffer.
* @param buffer OutBuffer to write to * @param buffer OutBuffer to write to
*/ */
virtual void fill(OutBuffer &buffer) const override virtual void fill(OutBuffer &buffer) const override {}
{
}
/** /**
* Get the type ID that is used to identify this type of * Get the type ID that is used to identify this type of