diff --git a/GattService.cpp b/GattService.cpp index 1f78b15..1e1924e 100644 --- a/GattService.cpp +++ b/GattService.cpp @@ -36,7 +36,7 @@ @endcode */ /**************************************************************************/ -GattService::GattService(UUID uuid) : primaryServiceID(uuid), characteristicCount(0), characteristics(), handle(0) +GattService::GattService(const UUID &uuid) : primaryServiceID(uuid), characteristicCount(0), characteristics(), handle(0) { /* empty */ } diff --git a/GattService.h b/GattService.h index b9d6104..700904d 100644 --- a/GattService.h +++ b/GattService.h @@ -34,7 +34,7 @@ class GattService private: public: - GattService(UUID uuid); + GattService(const UUID &uuid); virtual ~GattService(void); ble_error_t addCharacteristic(GattCharacteristic &);