@@ -53,14 +53,14 @@ struct PalSimpleAttFindInformationResponse : public AttFindInformationResponse {
53
53
/* *
54
54
* @see ble::AttFindInformationResponse::size
55
55
*/
56
- virtual size_t size () const {
56
+ size_t size () const override {
57
57
return _information_data.size () / _item_size;
58
58
}
59
59
60
60
/* *
61
61
* @see ble::AttFindInformationResponse::operator[]
62
62
*/
63
- virtual information_data_t operator [](size_t index) const {
63
+ information_data_t operator [](size_t index) const override {
64
64
const uint8_t * item = &_information_data[index * _item_size];
65
65
66
66
information_data_t result;
@@ -105,14 +105,14 @@ struct PalSimpleAttFindByTypeValueResponse : public AttFindByTypeValueResponse {
105
105
/* *
106
106
* @see ble::AttFindByTypeValueResponse::size
107
107
*/
108
- virtual std::size_t size () const {
108
+ std::size_t size () const override {
109
109
return _handles.size () / item_size;
110
110
}
111
111
112
112
/* *
113
113
* @see ble::AttFindByTypeValueResponse::operator[]
114
114
*/
115
- virtual attribute_handle_range_t operator [](size_t index) const {
115
+ attribute_handle_range_t operator [](size_t index) const override {
116
116
attribute_handle_range_t result;
117
117
const uint8_t * item = &_handles[index * item_size];
118
118
memcpy (&result.begin , item, sizeof (result.begin ));
@@ -147,14 +147,14 @@ struct PalSimpleAttReadByTypeResponse : public AttReadByTypeResponse {
147
147
/* *
148
148
* @see ble::AttReadByTypeResponse::size
149
149
*/
150
- virtual size_t size () const {
150
+ size_t size () const override {
151
151
return _attribute_data.size () / _element_size;
152
152
}
153
153
154
154
/* *
155
155
* @see ble::AttReadByTypeResponse::operator[]
156
156
*/
157
- virtual attribute_data_t operator [](size_t index) const {
157
+ attribute_data_t operator [](size_t index) const override {
158
158
const uint8_t * item = &_attribute_data[index * _element_size];
159
159
uint16_t handle;
160
160
memcpy (&handle, item, sizeof (handle));
@@ -196,14 +196,14 @@ struct PalSimpleAttReadByGroupTypeResponse : public AttReadByGroupTypeResponse {
196
196
/* *
197
197
* @see ble::AttReadByGroupTypeResponse::size
198
198
*/
199
- virtual size_t size () const {
199
+ size_t size () const override {
200
200
return _attribute_data.size () / _element_size;
201
201
}
202
202
203
203
/* *
204
204
* @see ble::AttReadByGroupTypeResponse::operator[]
205
205
*/
206
- virtual attribute_data_t operator [](size_t index) const {
206
+ attribute_data_t operator [](size_t index) const override {
207
207
const uint8_t * item = &_attribute_data[index * _element_size];
208
208
uint16_t begin;
209
209
uint16_t end;
0 commit comments