[clazy] [Bug 406798] New: "Emit keyword being used with non-signal" when signal is a Q_SCRIPTABLE

Laurent Montel bugzilla_noreply at kde.org
Tue Apr 23 07:11:00 BST 2019


https://bugs.kde.org/show_bug.cgi?id=406798

            Bug ID: 406798
           Summary: "Emit keyword being used with non-signal" when signal
                    is a Q_SCRIPTABLE
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: montel at kde.org
                CC: smartins at kde.org
  Target Milestone: ---

When I use clazy it reports:
"kmailtransport/src/kmailtransport/transportmanager.cpp:521:10: warning: Emit
keyword being used with non-signal"

void TransportManager::emitChangesCommitted()
{
    d->myOwnChange = true; // prevent us from reading our changes again
    d->appliedChange = false; // but we have to read them at least once
    emit transportsChanged();
    emit changesCommitted();
}

but changesCommitted() is a SIGNAL
see: 
Q_SIGNALS:
...
Q_SCRIPTABLE void changesCommitted();

Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list