Skip to content

Commit 83dead3

Browse files
Merge pull request #6 from andreagilardoni/using-namespace-std
moved using namespace std in cpp file
2 parents 9028d42 + f50ddce commit 83dead3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/kvstore/implementation/ESP32.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "nvs.h"
1414
#include "nvs_flash.h"
1515

16+
using namespace std;
17+
1618
bool ESP32KVStore::begin(const char* name, bool readOnly, const char* partition_label) {
1719
if(_started){
1820
return false;

src/kvstore/implementation/ESP32.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include <Arduino.h>
1414
#include <string>
1515

16-
using namespace std;
17-
1816
constexpr char DEFAULT_KVSTORE_NAME[] = "arduino";
1917

2018
class ESP32KVStore: public KVStoreInterface {

src/kvstore/implementation/Nina.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include "Nina.h"
1414

15+
using namespace std;
16+
1517
bool NinaKVStore::begin(const char* name, bool readOnly, const char* partitionLabel) {
1618
WiFiDrv::wifiDriverInit();
1719

src/kvstore/implementation/Nina.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313

1414
#include <WiFi.h>
1515

16-
using namespace std;
17-
1816
const char DEFAULT_KVSTORE_NAME[] = "arduino";
1917

2018
class NinaKVStore: public KVStoreInterface {

src/kvstore/implementation/UnoR4.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#if defined(ARDUINO_UNOR4_WIFI)
1212
#include "UnoR4.h"
1313

14+
using namespace std;
15+
1416
bool Unor4KVStore::begin(const char* name, bool readOnly, const char* partitionLabel) {
1517
this->name = name;
1618
string res = "";

src/kvstore/implementation/UnoR4.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include <Modem.h>
1515
#include <string>
1616

17-
using namespace std;
18-
1917
constexpr char DEFAULT_KVSTORE_NAME[] = "arduino";
2018

2119
class Unor4KVStore: public KVStoreInterface {

0 commit comments

Comments
 (0)