deprecate ofPtr
Merge pull request #3069 from arturoc/feature-deprecateofPtr

deprecate ofPtr