Refs #9949.  Replace pointer by reference.
Merge branch 'bugfix/9949_coverity_share_ptr' into develop