Skip to content

Commit 8054906

Browse files
committed
refactor: improve emplace construction for shm_data in mutex.h
1 parent 025311d commit 8054906

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libipc/platform/linux/mutex.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ class mutex {
126126
auto it = info.mutex_handles.find(name);
127127
if (it == info.mutex_handles.end()) {
128128
it = info.mutex_handles
129-
.emplace(
130-
std::piecewise_construct, std::forward_as_tuple(name),
131-
std::forward_as_tuple(curr_prog::shm_data::init{name}))
129+
.emplace(std::piecewise_construct,
130+
std::forward_as_tuple(name),
131+
std::forward_as_tuple(curr_prog::shm_data::init{name}))
132132
.first;
133133
}
134134
mutex_ = &it->second.mtx;

0 commit comments

Comments
 (0)