From e4f916a1982cbb9fbe7fe72739e82ada69e55a52 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Wed, 11 Jun 2014 14:14:04 +0100 Subject: [PATCH] use const reference in constructor for GattService --- GattService.cpp | 2 +- GattService.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 &);