remove usage of deprecated methods within QgsVectorLayer itself
fix warnings brought up by clang