Fix pointless array creation.

Change-Id: I5e57e40476bdfade587f3bb86d865e7eb2b3e29b
Reviewed-on: http://gerrit.dmdirc.com/3880
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Remove redundant cast.

Change-Id: I09635df097c63ddef22462160a3c94f72772be40
Reviewed-on: http://gerrit.dmdirc.com/3881
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>