@@ -128,7 +128,7 @@ class GattServer {
128128 * @note params has a temporary scope and should be copied by the
129129 * application if needed later
130130 */
131- virtual void onDataSent (const GattDataSentCallbackParams* params) {
131+ virtual void onDataSent (const GattDataSentCallbackParams & params) {
132132 (void )params;
133133 }
134134
@@ -138,7 +138,7 @@ class GattServer {
138138 * @note params has a temporary scope and should be copied by the
139139 * application if needed later
140140 */
141- virtual void onDataWritten (const GattWriteCallbackParams * params) {
141+ virtual void onDataWritten (const GattWriteCallbackParams & params) {
142142 (void )params;
143143 }
144144
@@ -155,15 +155,15 @@ class GattServer {
155155 * @see GattCharacteristic::setReadAuthorizationCallback()
156156 * @see isOnDataReadAvailable().
157157 */
158- virtual void onDataRead (const GattReadCallbackParams * params) {
158+ virtual void onDataRead (const GattReadCallbackParams & params) {
159159 (void )params;
160160 }
161161
162162 /* *
163163 * Function invoked when the GattServer instance is about
164164 * to be shut down. This can result in a call to reset() or BLE::reset().
165165 */
166- virtual void onShutdown (const GattServer * server) {
166+ virtual void onShutdown (const GattServer & server) {
167167 (void )server;
168168 }
169169
@@ -173,7 +173,7 @@ class GattServer {
173173 * @note params has a temporary scope and should be copied by the
174174 * application if needed later
175175 */
176- virtual void onUpdatesEnabled (const GattUpdatesEnabledCallbackParams* params) {
176+ virtual void onUpdatesEnabled (const GattUpdatesEnabledCallbackParams & params) {
177177 (void )params;
178178 }
179179
@@ -183,7 +183,7 @@ class GattServer {
183183 * @note params has a temporary scope and should be copied by the
184184 * application if needed later
185185 */
186- virtual void onUpdatesDisabled (const GattUpdatesDisabledCallbackParams* params) {
186+ virtual void onUpdatesDisabled (const GattUpdatesDisabledCallbackParams & params) {
187187 (void )params;
188188 }
189189
@@ -194,7 +194,7 @@ class GattServer {
194194 * @note params has a temporary scope and should be copied by the
195195 * application if needed later
196196 */
197- virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams* params) {
197+ virtual void onConfirmationReceived (const GattConfirmationReceivedCallbackParams & params) {
198198 (void )params;
199199 }
200200
0 commit comments