Fixed false positive cppcheck warning