Address coverity performance defects: avoid copy of weak pointer
[minor] Address coverity performance defects: Avoid copying a weak_ptr when it can be moved.
Edited by Shaun Roe
[minor] Address coverity performance defects: Avoid copying a weak_ptr when it can be moved.