Fixed 2 Cppcheck warnings. Function can be static|const