Goran Mahovlic / nRF51822_BLE_MIDI

Dependents:   BLE_MIDI

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Fri Nov 21 10:00:40 2014 +0000
Parent:
71:f11b3e313843
Child:
73:3d51439b8ce0
Commit message:
Synchronized with git rev 8940e824
Author: Rohit Grover
GattServer:: improve default constructor

Changed in this revision

nRF51GattServer.h Show annotated file Show diff for this revision Revisions of this file
--- a/nRF51GattServer.h	Fri Nov 21 10:00:40 2014 +0000
+++ b/nRF51GattServer.h	Fri Nov 21 10:00:40 2014 +0000
@@ -49,12 +49,9 @@
     GattAttribute *p_descriptors[BLE_TOTAL_DESCRIPTORS];
     uint16_t nrfDescriptorHandles[BLE_TOTAL_DESCRIPTORS];
 
-    nRF51GattServer() {
-        serviceCount = 0;
-        characteristicCount = 0;
-        descriptorCount = 0;
-    };
-
+    nRF51GattServer() : GattServer(), p_characteristics(), nrfCharacteristicHandles(), p_descriptors(), descriptorCount(0), nrfDescriptorHandles() {
+        /* empty */
+    }
 
 private:
     nRF51GattServer(const nRF51GattServer &);