From cbe8c0c4efe065c211141a76dc016efd7ceb5d31 Mon Sep 17 00:00:00 2001 From: Artem Nosach Date: Mon, 3 Aug 2015 21:28:03 +0300 Subject: Check for empty queue in MessageQueue::pop() method Return bool value from MessageQueue::pop() method that shows if pop operation was successful. Add default constructors to all classes used as message for message queue. Closes-bug: APPLINK-14928 --- .../protocol_handler/include/protocol_handler/protocol_handler_impl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/components/protocol_handler/include/protocol_handler') diff --git a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h index bff972ede4..46155c4c67 100644 --- a/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h +++ b/src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h @@ -85,6 +85,7 @@ namespace impl { * when we have them. */ struct RawFordMessageFromMobile: public ProtocolFramePtr { + RawFordMessageFromMobile() {} explicit RawFordMessageFromMobile(const ProtocolFramePtr message) : ProtocolFramePtr(message) {} // PrioritizedQueue requires this method to decide which priority to assign @@ -95,6 +96,7 @@ struct RawFordMessageFromMobile: public ProtocolFramePtr { }; struct RawFordMessageToMobile: public ProtocolFramePtr { + RawFordMessageToMobile() : is_final(false) {} explicit RawFordMessageToMobile(const ProtocolFramePtr message, bool final_message) : ProtocolFramePtr(message), is_final(final_message) {} -- cgit v1.2.1