Skip to content

Commit 2af0f88

Browse files
committed
BLE: Cleanup AttServerMessage implementation
1 parent 6df7846 commit 2af0f88

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

connectivity/FEATURE_BLE/source/pal/PalSimpleAttServerMessage.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ struct PalSimpleAttFindInformationResponse : public AttFindInformationResponse {
5353
/**
5454
* @see ble::AttFindInformationResponse::size
5555
*/
56-
virtual size_t size() const {
56+
size_t size() const override {
5757
return _information_data.size() / _item_size;
5858
}
5959

6060
/**
6161
* @see ble::AttFindInformationResponse::operator[]
6262
*/
63-
virtual information_data_t operator[](size_t index) const {
63+
information_data_t operator[](size_t index) const override {
6464
const uint8_t* item = &_information_data[index * _item_size];
6565

6666
information_data_t result;
@@ -105,14 +105,14 @@ struct PalSimpleAttFindByTypeValueResponse : public AttFindByTypeValueResponse {
105105
/**
106106
* @see ble::AttFindByTypeValueResponse::size
107107
*/
108-
virtual std::size_t size() const {
108+
std::size_t size() const override {
109109
return _handles.size() / item_size;
110110
}
111111

112112
/**
113113
* @see ble::AttFindByTypeValueResponse::operator[]
114114
*/
115-
virtual attribute_handle_range_t operator[](size_t index) const {
115+
attribute_handle_range_t operator[](size_t index) const override {
116116
attribute_handle_range_t result;
117117
const uint8_t* item = &_handles[index * item_size];
118118
memcpy(&result.begin, item, sizeof(result.begin));
@@ -147,14 +147,14 @@ struct PalSimpleAttReadByTypeResponse : public AttReadByTypeResponse {
147147
/**
148148
* @see ble::AttReadByTypeResponse::size
149149
*/
150-
virtual size_t size() const {
150+
size_t size() const override {
151151
return _attribute_data.size() / _element_size;
152152
}
153153

154154
/**
155155
* @see ble::AttReadByTypeResponse::operator[]
156156
*/
157-
virtual attribute_data_t operator[](size_t index) const {
157+
attribute_data_t operator[](size_t index) const override {
158158
const uint8_t* item = &_attribute_data[index * _element_size];
159159
uint16_t handle;
160160
memcpy(&handle, item, sizeof(handle));
@@ -196,14 +196,14 @@ struct PalSimpleAttReadByGroupTypeResponse : public AttReadByGroupTypeResponse {
196196
/**
197197
* @see ble::AttReadByGroupTypeResponse::size
198198
*/
199-
virtual size_t size() const {
199+
size_t size() const override {
200200
return _attribute_data.size() / _element_size;
201201
}
202202

203203
/**
204204
* @see ble::AttReadByGroupTypeResponse::operator[]
205205
*/
206-
virtual attribute_data_t operator[](size_t index) const {
206+
attribute_data_t operator[](size_t index) const override {
207207
const uint8_t* item = &_attribute_data[index * _element_size];
208208
uint16_t begin;
209209
uint16_t end;

0 commit comments

Comments
 (0)