diff options
author | Artem Nosach <ANosach@luxoft.com> | 2015-08-03 21:28:03 +0300 |
---|---|---|
committer | Artem Nosach <ANosach@luxoft.com> | 2015-10-04 18:08:49 +0300 |
commit | cbe8c0c4efe065c211141a76dc016efd7ceb5d31 (patch) | |
tree | 32b1fefbe8fe8f9bac1e228f5d99ddef1b1bd6be /src/components/protocol_handler/include/protocol_handler | |
parent | 065c5b6508b59e08b758fef58d770b828dab11f8 (diff) | |
download | sdl_core-cbe8c0c4efe065c211141a76dc016efd7ceb5d31.tar.gz |
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
Diffstat (limited to 'src/components/protocol_handler/include/protocol_handler')
-rw-r--r-- | src/components/protocol_handler/include/protocol_handler/protocol_handler_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) {} |