Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4baf42c

Browse filesBrowse files
authored
Merge pull request #144 from facchinm/no_forced_namespace
Remove forceful "using namespace arduino" from headers
2 parents 2af4a9c + f66d9dc commit 4baf42c
Copy full SHA for 4baf42c

File tree

5 files changed

+9
-4
lines changed
Filter options

5 files changed

+9
-4
lines changed

‎api/Print.h

Copy file name to clipboardExpand all lines: api/Print.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ class Print
9393
};
9494

9595
}
96-
using namespace arduino;
96+
using arduino::Print;

‎api/String.h

Copy file name to clipboardExpand all lines: api/String.h
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,8 @@ class StringSumHelper : public String
255255

256256
} // namespace arduino
257257

258+
using arduino::__FlashStringHelper;
259+
using arduino::String;
260+
258261
#endif // __cplusplus
259262
#endif // __ARDUINO_STRINGS__

‎api/Udp.h

Copy file name to clipboardExpand all lines: api/Udp.h
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,4 @@ class UDP : public Stream {
8787
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
8888
};
8989

90-
}
91-
92-
using namespace arduino;
90+
}

‎test/src/Stream/test_parseFloat.cpp

Copy file name to clipboardExpand all lines: test/src/Stream/test_parseFloat.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include <float.h>
1414

15+
using namespace arduino;
16+
1517
/**************************************************************************************
1618
* TEST CODE
1719
**************************************************************************************/

‎test/src/Stream/test_parseInt.cpp

Copy file name to clipboardExpand all lines: test/src/Stream/test_parseInt.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* TEST CODE
1515
**************************************************************************************/
1616

17+
using namespace arduino;
18+
1719
TEST_CASE ("Testing parseInt(LookaheadMode lookahead = SKIP_ALL, char ignore = NO_IGNORE_CHAR)", "[Stream-parseInt-01]")
1820
{
1921
StreamMock mock;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.