Changed method argument type to const. Refs #9949.
Merge branch 'bugfix/9949_coverity_share_ptr' into develop