Fix compiler warnings about argument being non-const in virtual base method

Another follow up fix for 93304df0381cbeab .

Change-Id: I39c98ed2e769a048c00931bd3b850d4d50310d99
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>