diff options
author | jan Iversen <jani@libreoffice.org> | 2018-05-21 17:36:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-05-21 12:48:04 -0700 |
commit | a312e53f0ce47dd2797070dff37e51fbfafd489a (patch) | |
tree | bb603a4ffafc2dea632a587e6cc5b7cdb91f73ca /core/qtserialbluetooth.cpp | |
parent | 034f9a6ca2eabcc4714214ca07207509b00e39a2 (diff) | |
download | subsurface-a312e53f0ce47dd2797070dff37e51fbfafd489a.tar.gz |
core: Change Q_UNUSED to no parameter name
C++ permits use of parameters without name, which signals unused
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'core/qtserialbluetooth.cpp')
-rw-r--r-- | core/qtserialbluetooth.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/qtserialbluetooth.cpp b/core/qtserialbluetooth.cpp index 8bc5e5803..962602b42 100644 --- a/core/qtserialbluetooth.cpp +++ b/core/qtserialbluetooth.cpp @@ -41,10 +41,8 @@ typedef struct qt_serial_t { long timeout; } qt_serial_t; -static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t *context, const char* devaddr) +static dc_status_t qt_serial_open(qt_serial_t **io, dc_context_t*, const char* devaddr) { - Q_UNUSED(context); - // Allocate memory. qt_serial_t *serial_port = (qt_serial_t *) malloc (sizeof (qt_serial_t)); if (serial_port == NULL) { |