Replace typedef with using

This commit is contained in:
Benoit Blanchon committed 2024-10-23 15:54:08 +02:00
1 parent 61ec2c4f95
commit c6c0649d70
30 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -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;
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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>;