diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2021-03-07 17:14:31 -0500 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2022-04-20 08:34:59 -0400 |
commit | 4c1a168757b6f7a293dd0b10d8f52f6700840ab5 (patch) | |
tree | e4261b2f42b40c0feb74d24b4b9cdd4d36378651 | |
parent | wsd: kill coolwsd_fuzzer (diff) | |
download | online-4c1a168757b6f7a293dd0b10d8f52f6700840ab5.tar.gz online-4c1a168757b6f7a293dd0b10d8f52f6700840ab5.zip |
wsd: remove argument default-value
Single-use default argument.
Change-Id: I1085465c0dbdf6cbda934277feca61781b67f45c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
-rw-r--r-- | kit/Kit.cpp | 2 | ||||
-rw-r--r-- | net/WebSocketHandler.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/kit/Kit.cpp b/kit/Kit.cpp index ec805039ec..4ba312fca9 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -630,7 +630,7 @@ public: return false; } - _websocketHandler->sendMessage(data, size, code); + _websocketHandler->sendMessage(data, size, code, /*flush=*/true); return true; } diff --git a/net/WebSocketHandler.hpp b/net/WebSocketHandler.hpp index 3d44280ca1..481bad6bd7 100644 --- a/net/WebSocketHandler.hpp +++ b/net/WebSocketHandler.hpp @@ -627,8 +627,8 @@ public: /// Sends a WebSocket message of WPOpCode type. /// Returns the number of bytes written (including frame overhead) on success, - /// 0 for closed/invalid socket, and -1 for other errors. - int sendMessage(const char* data, const size_t len, const WSOpCode code, const bool flush = true) const + /// 0 for closed socket, and -1 for other errors. + int sendMessage(const char* data, const size_t len, const WSOpCode code, const bool flush) const { int unitReturn = -1; if (!Util::isFuzzing() && UnitBase::get().filterSendMessage(data, len, code, flush, unitReturn)) |