forked from bblanchon/ArduinoJson
Replace typedef with using
This commit is contained in:
1 parent
61ec2c4f95
commit
c6c0649d70
30 files changed
+54
-54
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "Literals.hpp"
|
||||
|
||||
typedef ArduinoJson::detail::ElementProxy<JsonDocument&> ElementProxy;
|
||||
using ElementProxy = ArduinoJson::detail::ElementProxy<JsonDocument&>;
|
||||
|
||||
TEST_CASE("ElementProxy::add()") {
|
||||
JsonDocument doc;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
using ArduinoJson::detail::sizeofArray;
|
||||
using ArduinoJson::detail::sizeofObject;
|
||||
|
||||
typedef ArduinoJson::detail::MemberProxy<JsonDocument&, const char*>
|
||||
MemberProxy;
|
||||
using MemberProxy =
|
||||
ArduinoJson::detail::MemberProxy<JsonDocument&, const char*>;
|
||||
|
||||
TEST_CASE("MemberProxy::add()") {
|
||||
JsonDocument doc;
|
||||
|
||||
@@ -99,7 +99,7 @@ TEST_CASE("vector<int>") {
|
||||
}
|
||||
|
||||
TEST_CASE("array<int, 2>") {
|
||||
typedef std::array<int, 2> array_type;
|
||||
using array_type = std::array<int, 2>;
|
||||
|
||||
SECTION("toJson") {
|
||||
array_type v;
|
||||
|
||||
@@ -8,4 +8,4 @@
|
||||
|
||||
struct custom_char_traits : std::char_traits<char> {};
|
||||
|
||||
typedef std::basic_string<char, custom_char_traits> custom_string;
|
||||
using custom_string = std::basic_string<char, custom_char_traits>;
|
||||
Reference in new issue
Block a user