From 8dbc48cd8ae4544b4bceed6b22763c7f6d505fd4 Mon Sep 17 00:00:00 2001 From: lnd3 Date: Thu, 7 Nov 2024 14:48:25 +0100 Subject: [PATCH] Fix type conversion error. --- packages/network/tests/common/NetworkWebSocketTest.cpp | 4 ++-- packages/nodegraph/tests/common/NodeGraphDataTest.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/network/tests/common/NetworkWebSocketTest.cpp b/packages/network/tests/common/NetworkWebSocketTest.cpp index 707b78ef..72260403 100644 --- a/packages/network/tests/common/NetworkWebSocketTest.cpp +++ b/packages/network/tests/common/NetworkWebSocketTest.cpp @@ -21,7 +21,7 @@ TEST(NetworkWebSocket, Setup) { bool failed = false; auto websocketHandler = [&]( bool success, - std::string_view queryArguments, + std::string_view, l::network::WebSocket& ws) { TEST_TRUE_NO_RET(success, ""); TEST_TRUE_NO_RET(ws.IsWebSocket(), ""); @@ -66,7 +66,7 @@ TEST(NetworkWebSocket, BinanceKlines) { bool failed = false; auto websocketHandler = [&]( bool success, - std::string_view queryArguments, + std::string_view, l::network::WebSocket& ws) { failed = !success; LOG(LogInfo) << "Success: " << success; diff --git a/packages/nodegraph/tests/common/NodeGraphDataTest.cpp b/packages/nodegraph/tests/common/NodeGraphDataTest.cpp index 199af215..496af8b6 100644 --- a/packages/nodegraph/tests/common/NodeGraphDataTest.cpp +++ b/packages/nodegraph/tests/common/NodeGraphDataTest.cpp @@ -83,8 +83,8 @@ class TestOp2 : public NodeGraphOp2 { auto out0 = outputs.at(0).GetIterator(numSamples, 4.0f); auto out1 = outputs.at(1).GetIterator(numSamples, 4.0f); - mInputManager.SetDuration(0, 24.0f, 0.1); - mInputManager.SetDuration(1, 0.5f, 0.1); + mInputManager.SetDuration(0, 24.0f, 0.1f); + mInputManager.SetDuration(1, 0.5f, 0.1f); for (int i = 0; i < numSamples; i++) { float value0 = mInputManager.GetValueNext(0);