From a013558e81fbce6d02bae3a43aee5455ea046b64 Mon Sep 17 00:00:00 2001 From: badaix Date: Sat, 22 Feb 2020 16:43:13 +0100 Subject: [PATCH] Reformat code --- client/client_connection.cpp | 5 ++--- common/sample_format.hpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/client_connection.cpp b/client/client_connection.cpp index 7157c2de..6ffbfd0d 100644 --- a/client/client_connection.cpp +++ b/client/client_connection.cpp @@ -44,7 +44,6 @@ ClientConnection::~ClientConnection() } - void ClientConnection::socketRead(void* _to, size_t _bytes) { size_t toRead = _bytes; @@ -173,8 +172,8 @@ void ClientConnection::getNextMessage() { socketRead(&buffer_[0], base_msg_size_); base_message_.deserialize(buffer_.data()); - // LOG(DEBUG) << "getNextMessage: " << baseMessage.type << ", size: " << baseMessage.size << ", id: " << baseMessage.id << ", refers: " << - // baseMessage.refersTo << "\n"; + // LOG(DEBUG) << "getNextMessage: " << base_message_.type << ", size: " << base_message_.size << ", id: " << base_message_.id + // << ", refers: " << base_message_.refersTo << "\n"; if (base_message_.size > buffer_.size()) buffer_.resize(base_message_.size); // { diff --git a/common/sample_format.hpp b/common/sample_format.hpp index 457423a3..c490d166 100644 --- a/common/sample_format.hpp +++ b/common/sample_format.hpp @@ -50,7 +50,7 @@ public: { return ((rate_ != 0) || (bits_ != 0) || (channels_ != 0)); } - + uint32_t rate() const { return rate_;