Nordic BLE: Improve return of nRF5xn::getGap.

Return the derived type instead of the abstract one. This is legal as C++ supports covariant returns.
pull/7210/head
Vincent Coubard 2018-06-13 15:02:07 +01:00
parent ed9a1f1327
commit 8e7936d327
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
* always needed in a BLE application. Therefore it is allocated * always needed in a BLE application. Therefore it is allocated
* statically. * statically.
*/ */
virtual Gap &getGap() { virtual nRF5xGap &getGap() {
return gapInstance; return gapInstance;
}; };

View File

@ -54,7 +54,7 @@ public:
* always needed in a BLE application. Therefore it is allocated * always needed in a BLE application. Therefore it is allocated
* statically. * statically.
*/ */
virtual Gap &getGap() { virtual nRF5xGap &getGap() {
return gapInstance; return gapInstance;
}; };