summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serialbus/can/mainwindow.h')
-rw-r--r--examples/serialbus/can/mainwindow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/serialbus/can/mainwindow.h b/examples/serialbus/can/mainwindow.h
index 673e87a..2e910d1 100644
--- a/examples/serialbus/can/mainwindow.h
+++ b/examples/serialbus/can/mainwindow.h
@@ -96,7 +96,7 @@ private:
QLabel *m_status = nullptr;
QLabel *m_written = nullptr;
ConnectDialog *m_connectDialog = nullptr;
- QCanBusDevice *m_canDevice = nullptr;
+ std::unique_ptr<QCanBusDevice> m_canDevice;
QTimer *m_busStatusTimer = nullptr;
};