------------------------------------------------------------
revno: 4088
committer: Anton Gladky <[email protected]>
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;
 }

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to