Skip to content

Commit b0895df

Browse files
committed
use braces for constructor
1 parent 5f0023a commit b0895df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rmw_cyclonedds_cpp/src/rmw_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,7 @@ static void clean_waitset_caches()
22212221
used ... */
22222222
std::lock_guard<std::mutex> lock(gcdds.lock);
22232223
for (auto && ws : gcdds.waitsets) {
2224-
std::unique_lock<std::mutex> lock2(ws->lock, std::try_to_lock);
2224+
std::unique_lock<std::mutex> lock2{ws->lock, std::try_to_lock};
22252225
if (lock2.owns_lock()) {
22262226
waitset_detach(ws);
22272227
}

0 commit comments

Comments
 (0)