#5592 (fix implementation detail to avoid warnings from cppcheck)