Skip to content

moved using namespace std in cpp file #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/kvstore/implementation/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions src/kvstore/implementation/ESP32.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <Arduino.h>
#include <string>

using namespace std;

constexpr char DEFAULT_KVSTORE_NAME[] = "arduino";

class ESP32KVStore: public KVStoreInterface {
Expand Down
2 changes: 2 additions & 0 deletions src/kvstore/implementation/Nina.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

#include "Nina.h"

using namespace std;

bool NinaKVStore::begin(const char* name, bool readOnly, const char* partitionLabel) {
WiFiDrv::wifiDriverInit();

Expand Down
2 changes: 0 additions & 2 deletions src/kvstore/implementation/Nina.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

#include <WiFi.h>

using namespace std;

const char DEFAULT_KVSTORE_NAME[] = "arduino";

class NinaKVStore: public KVStoreInterface {
Expand Down
2 changes: 2 additions & 0 deletions src/kvstore/implementation/UnoR4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
2 changes: 0 additions & 2 deletions src/kvstore/implementation/UnoR4.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include <Modem.h>
#include <string>

using namespace std;

constexpr char DEFAULT_KVSTORE_NAME[] = "arduino";

class Unor4KVStore: public KVStoreInterface {
Expand Down
Loading