Fix warnings in jnipositioning.cpp


Since Android uses a new NDK/compiler since 5.12 there were many more warnings
which had serious implications. Examples are potentially flawed downcasts,
nullptr warnings and old style casting operators.

Change-Id: I53989fa9120c8b7e865d23255d1fcdf229e7f2f3
Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
commitfaaa6521dc37fcf4d989f94b6d2a373974357629
parentb4966afc91fa82315f0ae9b11f54f52f20183e9b
authorAlex Blasche <alexander.blasche@qt.io>
committerAlex Blasche <alexander.blasche@qt.io>
commit timeMon, 10 Dec 2018 15:44:38 +0000