From 74c6c583d254558355eedb7c90a24d9e2c596e51 Mon Sep 17 00:00:00 2001 From: thekurtovic <40248206+thekurtovic@users.noreply.github.com> Date: Thu, 16 Jan 2025 18:05:59 -0500 Subject: [PATCH] change(Utils): Compact instantiation --- src/NimBLEUtils.cpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/NimBLEUtils.cpp b/src/NimBLEUtils.cpp index b23a3fa..ec9817f 100644 --- a/src/NimBLEUtils.cpp +++ b/src/NimBLEUtils.cpp @@ -607,22 +607,9 @@ void NimBLEUtils::getAttr(const NimBLEUUID& uuid, T** attr, const std::vector( - const NimBLEUUID&, - NimBLERemoteService**, - const std::vector&, - const std::function&); - -template void NimBLEUtils::getAttr( - const NimBLEUUID&, - NimBLERemoteDescriptor**, - const std::vector&, - const std::function&); - -template void NimBLEUtils::getAttr( - const NimBLEUUID&, - NimBLERemoteCharacteristic**, - const std::vector&, - const std::function&); +using svc = NimBLERemoteService; using chr = NimBLERemoteCharacteristic; using dsc = NimBLERemoteDescriptor; +template void NimBLEUtils::getAttr(const NimBLEUUID&, svc**, const std::vector&, const std::function&); +template void NimBLEUtils::getAttr(const NimBLEUUID&, chr**, const std::vector&, const std::function&); +template void NimBLEUtils::getAttr(const NimBLEUUID&, dsc**, const std::vector&, const std::function&); #endif // CONFIG_BT_ENABLED