From 455bc8f40ce94402d9caee2fce321c66f3f5e2f5 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Tue, 13 Aug 2024 23:28:57 +0200 Subject: [PATCH] core: add copy constructors/assignment operators to device_data_t To make Coverity happy. Signed-off-by: Berthold Stoeger --- core/libdivecomputer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/libdivecomputer.h b/core/libdivecomputer.h index b99350900..8a9dccf82 100644 --- a/core/libdivecomputer.h +++ b/core/libdivecomputer.h @@ -46,6 +46,10 @@ struct device_data_t { void *androidUsbDeviceDescriptor = nullptr; device_data_t(); ~device_data_t(); + device_data_t(const device_data_t &) = default; + device_data_t(device_data_t &&) = default; + device_data_t &operator=(const device_data_t &) = default; + device_data_t &operator=(device_data_t &&) = default; }; const char *errmsg (dc_status_t rc);