diff --git a/include/ArduinoJson/JsonVariant.hpp b/include/ArduinoJson/JsonVariant.hpp index 9273c65b..ff39130b 100644 --- a/include/ArduinoJson/JsonVariant.hpp +++ b/include/ArduinoJson/JsonVariant.hpp @@ -166,7 +166,7 @@ class JsonVariant : public Internals::JsonPrintable { private: // Special constructor used only to create _invalid. - JsonVariant(Internals::JsonVariantType type) : _type(type) {} + explicit JsonVariant(Internals::JsonVariantType type) : _type(type) {} // Helper for interger cast operators template diff --git a/test/IntegrationTests.cpp b/test/IntegrationTests.cpp index a8fb6062..908e8430 100644 --- a/test/IntegrationTests.cpp +++ b/test/IntegrationTests.cpp @@ -12,7 +12,7 @@ using namespace ArduinoJson; class IntegrationTests : public testing::TestWithParam { - const static size_t MAX_JSON_SIZE = 10000; + static const size_t MAX_JSON_SIZE = 10000; protected: virtual void SetUp() {