Skip to content

Commit 2a714ea

Browse files
committed
web: fix debug graphics test clang-tidy warnings
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent c6f1e3e commit 2a714ea

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/web/test/cpp/TestDebugGraphics.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ TEST(SessionRegistryTest, BroadcastAndWaitTimesOut)
145145
SessionRegistry registry;
146146

147147
// Register a session whose SendAndWaitFn silently drops the fence.
148-
auto token
149-
= registry.add([](const std::string&) {},
150-
[](const std::string&, std::function<void()> /*fence*/) {
151-
/* never called */
152-
});
148+
auto token = registry.add(
149+
[](const std::string&) {},
150+
[](const std::string&, const std::function<void()>& /*fence*/) {
151+
/* never called */
152+
});
153153

154154
const auto t0 = std::chrono::steady_clock::now();
155155
EXPECT_FALSE(registry.broadcastAndWait("{}", std::chrono::milliseconds(200)));
@@ -170,7 +170,7 @@ TEST(SessionRegistryTest, BroadcastAndWaitDeadSession)
170170
// (simulating a dead session that signals right away).
171171
auto token = registry.add(
172172
[&send_called](const std::string&) { send_called = true; },
173-
[&send_called](const std::string&, std::function<void()> fence) {
173+
[&send_called](const std::string&, const std::function<void()>& fence) {
174174
send_called = true;
175175
fence();
176176
});

0 commit comments

Comments
 (0)