From 37be879e179681f56a5524c4517f6a8ed7180c97 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 14 May 2024 22:57:39 +0200 Subject: [PATCH] cleanup: remove typedef in qtserialbluetooth.cpp This was very odd: A typedef to the same name as the structure was named. Huh? Signed-off-by: Berthold Stoeger --- core/qtserialbluetooth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 9840e1305..956071ed6 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -31,13 +31,13 @@ static std::string to_str(const T &v) return v.toString().toStdString(); } -typedef struct qt_serial_t { +struct qt_serial_t { /* * RFCOMM socket used for Bluetooth Serial communication. */ QBluetoothSocket *socket; long timeout; -} qt_serial_t; +}; static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t*, const char *devaddr) {