wsd: remove argument default-value

Single-use default argument.

Change-Id: I1085465c0dbdf6cbda934277feca61781b67f45c
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
This commit is contained in:
Ashod Nakashian 2021-03-07 17:14:31 -05:00 committed by Ashod Nakashian
parent 96adaa15d1
commit 4c1a168757
2 changed files with 3 additions and 3 deletions

View file

@ -630,7 +630,7 @@ public:
return false;
}
_websocketHandler->sendMessage(data, size, code);
_websocketHandler->sendMessage(data, size, code, /*flush=*/true);
return true;
}

View file

@ -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))