Do not use deprecated method calls
@robertroth
Submitted by Robert Roth Link to original bug (#794268)
Description
There are some compilation warnings about deprecated function calls. We should not use deprecated API, the code should compile deprecation-warning-free.