Refactor some potentially unsafe SharedPtr<> code.
This commit is contained in:
parent
40a9ebd078
commit
74f2b78c04
3 changed files with 9 additions and 22 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue