Skip to content

Commit

Permalink
Code format - (Clang-format)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 25, 2024
1 parent ed2c435 commit 2448486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/server/network/message/networkmessage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int32_t NetworkMessage::decodeHeader() {
return info.length;
}

std::string NetworkMessage::getString(uint16_t stringLen /* = 0*/, const std::source_location& location) {
std::string NetworkMessage::getString(uint16_t stringLen /* = 0*/, const std::source_location &location) {
if (stringLen == 0) {
stringLen = get<uint16_t>();
}
Expand Down Expand Up @@ -49,7 +49,7 @@ Position NetworkMessage::getPosition() {
return pos;
}

void NetworkMessage::addString(const std::string &value, const std::source_location& location /*= std::source_location::current()*/, const std::string &function /* = ""*/) {
void NetworkMessage::addString(const std::string &value, const std::source_location &location /*= std::source_location::current()*/, const std::string &function /* = ""*/) {
size_t stringLen = value.length();
if (value.empty()) {
if (!function.empty()) {
Expand Down
4 changes: 2 additions & 2 deletions src/server/network/message/networkmessage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class NetworkMessage {
return v;
}

std::string getString(uint16_t stringLen = 0, const std::source_location& location = std::source_location::current());
std::string getString(uint16_t stringLen = 0, const std::source_location &location = std::source_location::current());
Position getPosition();

// skips count unknown/unused bytes in an incoming message
Expand Down Expand Up @@ -128,7 +128,7 @@ class NetworkMessage {
* that log messages accurately reflect the Lua context. When invoking from C++, omitting the `function`
* parameter allows `std::source_location` to automatically capture the C++ context.
*/
void addString(const std::string &value, const std::source_location& location = std::source_location::current(), const std::string &function = "");
void addString(const std::string &value, const std::source_location &location = std::source_location::current(), const std::string &function = "");

void addDouble(double value, uint8_t precision = 2);

Expand Down

0 comments on commit 2448486

Please sign in to comment.