Hi @sutt,
cppcheck complains about the duplicated assign expression, so here is the fix. As for me the fix looks more logical, but could you, please have a look if you are fine with it?
Best regards,
Andrii
Tag @sroe