From f50ddce3c8e5d3624119b9ee0c177e3b2c3b6387 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Tue, 27 May 2025 12:34:30 +0200 Subject: [PATCH] moved using namespace std in cpp file --- src/kvstore/implementation/ESP32.cpp | 2 ++ src/kvstore/implementation/ESP32.h | 2 -- src/kvstore/implementation/Nina.cpp | 2 ++ src/kvstore/implementation/Nina.h | 2 -- src/kvstore/implementation/UnoR4.cpp | 2 ++ src/kvstore/implementation/UnoR4.h | 2 -- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/kvstore/implementation/ESP32.cpp b/src/kvstore/implementation/ESP32.cpp index b82ee0e..3383af9 100644 --- a/src/kvstore/implementation/ESP32.cpp +++ b/src/kvstore/implementation/ESP32.cpp @@ -13,6 +13,8 @@ #include "nvs.h" #include "nvs_flash.h" +using namespace std; + bool ESP32KVStore::begin(const char* name, bool readOnly, const char* partition_label) { if(_started){ return false; diff --git a/src/kvstore/implementation/ESP32.h b/src/kvstore/implementation/ESP32.h index f67b520..12b9118 100644 --- a/src/kvstore/implementation/ESP32.h +++ b/src/kvstore/implementation/ESP32.h @@ -13,8 +13,6 @@ #include #include -using namespace std; - constexpr char DEFAULT_KVSTORE_NAME[] = "arduino"; class ESP32KVStore: public KVStoreInterface { diff --git a/src/kvstore/implementation/Nina.cpp b/src/kvstore/implementation/Nina.cpp index 0fcec90..6500b10 100644 --- a/src/kvstore/implementation/Nina.cpp +++ b/src/kvstore/implementation/Nina.cpp @@ -12,6 +12,8 @@ #include "Nina.h" +using namespace std; + bool NinaKVStore::begin(const char* name, bool readOnly, const char* partitionLabel) { WiFiDrv::wifiDriverInit(); diff --git a/src/kvstore/implementation/Nina.h b/src/kvstore/implementation/Nina.h index 845990d..81849fb 100644 --- a/src/kvstore/implementation/Nina.h +++ b/src/kvstore/implementation/Nina.h @@ -13,8 +13,6 @@ #include -using namespace std; - const char DEFAULT_KVSTORE_NAME[] = "arduino"; class NinaKVStore: public KVStoreInterface { diff --git a/src/kvstore/implementation/UnoR4.cpp b/src/kvstore/implementation/UnoR4.cpp index 516d798..531e546 100644 --- a/src/kvstore/implementation/UnoR4.cpp +++ b/src/kvstore/implementation/UnoR4.cpp @@ -11,6 +11,8 @@ #if defined(ARDUINO_UNOR4_WIFI) #include "UnoR4.h" +using namespace std; + bool Unor4KVStore::begin(const char* name, bool readOnly, const char* partitionLabel) { this->name = name; string res = ""; diff --git a/src/kvstore/implementation/UnoR4.h b/src/kvstore/implementation/UnoR4.h index c3368ae..f199b86 100644 --- a/src/kvstore/implementation/UnoR4.h +++ b/src/kvstore/implementation/UnoR4.h @@ -14,8 +14,6 @@ #include #include -using namespace std; - constexpr char DEFAULT_KVSTORE_NAME[] = "arduino"; class Unor4KVStore: public KVStoreInterface {