Skip to content

Commit c4cce82

Browse files
committed
fix clang-format issues
1 parent 924375f commit c4cce82

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/clientrpc.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,22 +328,25 @@ CClientRpc::CClientRpc ( CClient* pClient, CRpcServer* pRpcServer, QObject* pare
328328
} );
329329

330330
/// @rpc_method jamulusclient/setFaderLevel
331-
/// @brief Sets the fader level. Example: {"id":1,"jsonrpc":"2.0","method":"jamulusclient/setFaderLevel","params":{"channelIndex": 0,"level": 50}}.
331+
/// @brief Sets the fader level. Example: {"id":1,"jsonrpc":"2.0","method":"jamulusclient/setFaderLevel","params":{"channelIndex": 0,"level":
332+
/// 50}}.
332333
/// @param {number} params.channelIndex - The channel index of the fader to be set.
333334
/// @param {number} params.level - The fader level in range 0..100.
334335
/// @result {string} result - Always "ok".
335336
pRpcServer->HandleMethod ( "jamulusclient/setFaderLevel", [=] ( const QJsonObject& params, QJsonObject& response ) {
336337
auto jsonChannelIndex = params["channelIndex"];
337338
if ( !jsonChannelIndex.isDouble() || ( jsonChannelIndex.toInt() < 0 ) || ( jsonChannelIndex.toInt() > MAX_NUM_CHANNELS ) )
338339
{
339-
response["error"] = CRpcServer::CreateJsonRpcError ( CRpcServer::iErrInvalidParams, "Invalid params: channelIndex is not a number or out-of-range" );
340+
response["error"] =
341+
CRpcServer::CreateJsonRpcError ( CRpcServer::iErrInvalidParams, "Invalid params: channelIndex is not a number or out-of-range" );
340342
return;
341343
}
342344

343345
auto jsonLevel = params["level"];
344346
if ( !jsonLevel.isDouble() || ( jsonLevel.toInt() < 0 ) || ( jsonLevel.toInt() > 100 ) )
345347
{
346-
response["error"] = CRpcServer::CreateJsonRpcError ( CRpcServer::iErrInvalidParams, "Invalid params: level is not a number or out-of-range" );
348+
response["error"] =
349+
CRpcServer::CreateJsonRpcError ( CRpcServer::iErrInvalidParams, "Invalid params: level is not a number or out-of-range" );
347350
return;
348351
}
349352

0 commit comments

Comments
 (0)