mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Fixed clazy warnings: pass large objects by reference to const.
This commit is contained in:
@@ -456,7 +456,7 @@ namespace BlackMisc
|
||||
|
||||
protected:
|
||||
//! \private Connect a function to be called (only once) when the owner's objectName changes.
|
||||
void onOwnerNameChanged(std::function<void()> function)
|
||||
void onOwnerNameChanged(const std::function<void()> &function)
|
||||
{
|
||||
connectOnce(m_page->parent(), &QObject::objectNameChanged, [function](const QString &) { function(); });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user