Browse Source

Fixed currentUpdatedHandlerId variable appearing multiple times in several build units. (#120)

* Fixed currentUpdatedHandlerId variable appearing multiple times in several build units
master
kasedy 4 years ago
committed by GitHub
parent
commit
13f97b630f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lib/framework/StatefulService.cpp
  2. 2
      lib/framework/StatefulService.h

3
lib/framework/StatefulService.cpp

@ -0,0 +1,3 @@
#include <StatefulService.h>
update_handler_id_t StateUpdateHandlerInfo::currentUpdatedHandlerId = 0;

2
lib/framework/StatefulService.h

@ -14,9 +14,9 @@
typedef size_t update_handler_id_t;
typedef std::function<void(const String& originId)> StateUpdateCallback;
static update_handler_id_t currentUpdatedHandlerId;
typedef struct StateUpdateHandlerInfo {
static update_handler_id_t currentUpdatedHandlerId;
update_handler_id_t _id;
StateUpdateCallback _cb;
bool _allowRemove;

Loading…
Cancel
Save