Refactor some potentially unsafe SharedPtr<> code.

This commit is contained in:
Adam Ierymenko 2018-04-06 08:10:34 -07:00
parent 40a9ebd078
commit 74f2b78c04
3 changed files with 9 additions and 22 deletions

View file

@ -119,7 +119,7 @@ public:
Mutex::Lock _l(_paths_m);
SharedPtr<Path> &p = _paths[Path::HashKey(l,r)];
if (!p)
p.setToUnsafe(new Path(l,r));
p.set(new Path(l,r));
return p;
}