yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #11069
[Branch ~yade-pkg/yade/git-trunk] Rev 4088: Replace nullptr by reset().
------------------------------------------------------------
revno: 4088
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
timestamp: Thu 2014-07-17 10:05:16 +0200
message:
Replace nullptr by reset().
modified:
core/BodyContainer.cpp
--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'core/BodyContainer.cpp'
--- core/BodyContainer.cpp 2014-07-17 06:34:00 +0000
+++ core/BodyContainer.cpp 2014-07-17 08:05:16 +0000
@@ -55,7 +55,8 @@
for(Body::MapId2IntrT::iterator it=b->intrs.begin(),end=b->intrs.end(); it!=end; ++it) { //Iterate over all body's interactions
scene->interactions->requestErase((*it).second);
}
- body[id]=nullptr;
+
+ body[id].reset();
return true;
}
Follow ups