Fix clang warning: const does not apply to non-reference/pointer return types.

Signed-off-by: Steven Lovegrove <stevenlovegrove@gmail.com>