Fix linting issues

This commit is contained in:
Rapsssito 2024-07-13 13:34:46 +02:00
parent d60b3e6481
commit 3dbf3f60fe
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ Trigger<std::vector<uint8_t>> *BLETriggers::create_on_write_trigger(BLECharacter
void BLECharacteristicSetValueActionManager::set_listener(BLECharacteristic *characteristic,
EventEmitterListenerID listener_id,
std::function<void()> pre_notify_listener) {
const std::function<void()>& pre_notify_listener) {
// Check if there is already a listener for this characteristic
if (this->listeners_.count(characteristic) > 0) {
// Unpack the pair listener_id, pre_notify_listener_id

View file

@ -37,7 +37,7 @@ class BLECharacteristicSetValueActionManager
return &instance;
}
void set_listener(BLECharacteristic *characteristic, EventEmitterListenerID listener_id,
std::function<void()> pre_notify_listener);
const std::function<void()>& pre_notify_listener);
EventEmitterListenerID get_listener(BLECharacteristic *characteristic) {
return this->listeners_[characteristic].first;
}