cppcheck performance fixes in dialogs/

No performance fix, drop it