mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Ref T488 Update cppcheck suppressions.
This commit is contained in:
@@ -36,7 +36,7 @@ namespace XSwiftBus
|
||||
CDBusConnection::~CDBusConnection()
|
||||
{
|
||||
close();
|
||||
if (m_connection) { dispatch(); }
|
||||
if (m_connection) { dispatch(); } // dispatch is virtual, but safe to call in dtor, as it's declared final
|
||||
if (m_dispatcher) { m_dispatcher->remove(this); }
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,8 @@ namespace XSwiftBus
|
||||
CDBusError lastError() const { return m_lastError; }
|
||||
|
||||
protected:
|
||||
virtual void dispatch() override;
|
||||
// cppcheck-suppress virtualCallInConstructor
|
||||
virtual void dispatch() override final;
|
||||
|
||||
private:
|
||||
void setDispatchStatus(DBusConnection *connection, DBusDispatchStatus status);
|
||||
|
||||
Reference in New Issue
Block a user