From 85cc936d5da669f8f74ea02c87a8204f4a6235c4 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Mon, 29 Jun 2020 16:50:45 +0200 Subject: [PATCH] added back clear CommandMessage function --- ipc/CommandMessage.cpp | 4 ++++ ipc/CommandMessage.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ipc/CommandMessage.cpp b/ipc/CommandMessage.cpp index 1470fe85f..8c296abdd 100644 --- a/ipc/CommandMessage.cpp +++ b/ipc/CommandMessage.cpp @@ -68,6 +68,10 @@ size_t CommandMessage::getMinimumMessageSize() const { return MINIMUM_COMMAND_MESSAGE_SIZE; } +void CommandMessage::clearCommandMessage() { + clear(); +} + void CommandMessage::clear() { CommandMessageCleaner::clearCommandMessage(this); } diff --git a/ipc/CommandMessage.h b/ipc/CommandMessage.h index 021fa49ab..d843e4c54 100644 --- a/ipc/CommandMessage.h +++ b/ipc/CommandMessage.h @@ -111,7 +111,9 @@ public: ReturnValue_t getReplyRejectedReason( Command_t* initialCommand = nullptr) const override; + virtual void clear() override; + void clearCommandMessage(); /** * Extract message ID, which is the first byte of the command ID for the