menudemo fix clazy-detaching-temporary
Fix clazy issue "tests/menudemo.cpp:28:40: warning: Don't call QList::last() on temporary [clazy-detaching-temporary]".
Fix clazy issue "tests/menudemo.cpp:28:40: warning: Don't call QList::last() on temporary [clazy-detaching-temporary]".