Fix build with -Werror=old-style-cast


It appears to be enabled in developer builds in Qt 5.7

Change-Id: Ib96cc866b511d8b947323d27f172dc3dd5f3e46f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
commit104c12823b1cbccb2a25593b0af319c0a42abbb5
parente83790bebe2263c89f91239846ec31a9edbff7f1
authorSimon Hausmann <simon.hausmann@theqtcompany.com>
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>
commit timeThu, 17 Dec 2015 10:20:38 +0000