QMenu* default_menu = Trace::create_view_context_menu(parent, click_pos);
if (default_menu) {
- for (QAction *action : default_menu->actions()) {
+ for (QAction *action : default_menu->actions()) { // clazy:exclude=range-loop
menu->addAction(action);
if (action->parent() == default_menu)
action->setParent(menu);
const vector<DecodeChannel> channels = decode_signal_->get_channels();
// Add the channels
- for (DecodeChannel ch : channels) {
+ for (const DecodeChannel& ch : channels) {
// Ignore channels not part of the decoder we create the form for
if (ch.decoder_ != dec)
continue;