diff --git a/plugins/TelescopeControl/src/INDI/test/testINDIConnection.cpp b/plugins/TelescopeControl/src/INDI/test/testINDIConnection.cpp index 3ea33fb840e86..868743aadfc0b 100644 --- a/plugins/TelescopeControl/src/INDI/test/testINDIConnection.cpp +++ b/plugins/TelescopeControl/src/INDI/test/testINDIConnection.cpp @@ -62,9 +62,9 @@ void TestINDIConnection::listDevices() INDI::BaseDevice device; device.setDeviceName("dummy"); - instance.newDevice(&device); + instance.newDevice(device); QVERIFY(instance.devices().size() == 1); - instance.removeDevice(&device); + instance.removeDevice(device); QVERIFY(instance.devices().empty()); }