mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
refactor: Fix clang-tidy modernize-use-auto
This commit is contained in:
@@ -27,7 +27,7 @@ namespace MiscTest
|
||||
|
||||
void CTestSlot::slotBasics()
|
||||
{
|
||||
QObject *obj = new QObject(this);
|
||||
auto obj = new QObject(this);
|
||||
CSlot<void(const QString &)> slot1 = { obj, [&](const QString &name) { obj->setObjectName(name); } };
|
||||
QVERIFY2(slot1, "Slot has valid object and function - can be called.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user