mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-28 17:57:05 +02:00
Reformat code, rename reformat-source
This commit is contained in:
parent
94edf2df7c
commit
67fd20619d
2 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,7 @@ if(CLANG_FORMAT)
|
|||
list(REMOVE_ITEM CHECK_CXX_SOURCE_FILES "${CMAKE_SOURCE_DIR}/common/json.hpp")
|
||||
|
||||
add_custom_target(
|
||||
reformat-source
|
||||
reformat-c++
|
||||
COMMAND ${CLANG_FORMAT} -i -style=file ${CHECK_CXX_SOURCE_FILES}
|
||||
COMMENT "Auto formatting of all source files with ${CLANG_FORMAT}")
|
||||
endif()
|
||||
|
|
|
@ -46,10 +46,11 @@ public:
|
|||
readVal(stream, message);
|
||||
}
|
||||
|
||||
uint32_t getSize() const override{
|
||||
uint32_t getSize() const override
|
||||
{
|
||||
return static_cast<uint32_t>(sizeof(uint32_t) // code
|
||||
+ sizeof(uint32_t) // message len
|
||||
+ message.size()); // message;
|
||||
+ message.size()); // message;
|
||||
}
|
||||
|
||||
/// error code
|
||||
|
|
Loading…
Add table
Reference in a new issue