Skip to content

Commit 1110410

Browse files
fix: change emplace() on map to insert()
- fixes problem with some compilers Related-To: GSD-10365, GSD-10367, GSD-10441 Signed-off-by: Mateusz Hoppe <[email protected]>
1 parent 3a6ce6d commit 1110410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared/source/os_interface/linux/drm_memory_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ void DrmMemoryManager::registerSharedBoHandleAllocation(DrmAllocation *drmAlloca
11271127

11281128
auto foundHandleWrapperIt = sharedBoHandles.find(std::pair<int, uint32_t>(bo->getHandle(), rootDeviceIndex));
11291129
if (foundHandleWrapperIt == std::end(sharedBoHandles)) {
1130-
sharedBoHandles.emplace(std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle());
1130+
sharedBoHandles.insert({std::make_pair(bo->getHandle(), rootDeviceIndex), bo->acquireWeakOwnershipOfBoHandle()});
11311131
} else {
11321132
bo->markAsSharedBoHandle();
11331133
}

0 commit comments

Comments
 (0)