add missing exclamation mark and static cast to mwSize