-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit 5653eb6
refactor(ble): Pass primitive types by value
There is no need to pass primitive types by reference,
especially by non-const reference as it was in BLECharacteristic.
Pass primitive types by value instead, as it should be,
and used everywhere else except this one odd class.
This allows allows to pass function result as `setValue()`
argument without creating temporary variable.1 parent 15be2a5 commit 5653eb6
File tree
2 files changed
+10
-10
lines changed- libraries/BLE/src
2 files changed
+10
-10
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
375 | 375 |
| |
376 | 376 |
| |
377 | 377 |
| |
378 | - | ||
378 | + | ||
379 | 379 |
| |
380 | 380 |
| |
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 | - | ||
385 | + | ||
386 | 386 |
| |
387 | 387 |
| |
388 | 388 |
| |
| |||
391 | 391 |
| |
392 | 392 |
| |
393 | 393 |
| |
394 | - | ||
394 | + | ||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
| |||
400 | 400 |
| |
401 | 401 |
| |
402 | 402 |
| |
403 | - | ||
403 | + | ||
404 | 404 |
| |
405 | 405 |
| |
406 | 406 |
| |
407 | 407 |
| |
408 | - | ||
408 | + | ||
409 | 409 |
| |
410 | 410 |
| |
411 | 411 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 | - | ||
190 | - | ||
191 | - | ||
192 | - | ||
193 | - | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
|
0 commit comments