astyle formatting
Fixed Cppcheck warning. Function can be const