fdo#81651 Wrong argument type in overriding class

See commits:
16752a8a773cf8096e28628237238a562016c4e5
c3a89936abc7967ebe8916ca83cb38f6837f9aa1

Change-Id: Ib58888f1027b26fab08519e8c6bede7dbeeb14b5