A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add operation to plugin doc
[simgrid.git]
/
src
/
sthread
/
ObjectAccess.cpp
diff --git
a/src/sthread/ObjectAccess.cpp
b/src/sthread/ObjectAccess.cpp
index 6584c7f0bf39a29aa738588475cca9ac57889307..6e38668af81bfe3b6a93ca26c84b643f24db3149 100644
(file)
--- a/
src/sthread/ObjectAccess.cpp
+++ b/
src/sthread/ObjectAccess.cpp
@@
-66,11
+66,10
@@
static ObjectOwner* get_owner(void* object)
{
if (owners.empty())
std::atexit(clean_owners);
- auto it = owners.find(object);
- if (it != owners.end())
+ if (auto it = owners.find(object); it != owners.end())
return it->second;
auto* o = new ObjectOwner(nullptr);
- owners.
insert({object, o}
);
+ owners.
emplace(object, o
);
return o;
}