Benoit Blanchon 11 лет назад
Родитель
Сommit
e0ce711eb4
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      include/ArduinoJson/JsonVariant.hpp
  2. 1 1
      test/IntegrationTests.cpp

+ 1 - 1
include/ArduinoJson/JsonVariant.hpp

@@ -166,7 +166,7 @@ class JsonVariant : public Internals::JsonPrintable<JsonVariant> {
 
  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 <typename T>

+ 1 - 1
test/IntegrationTests.cpp

@@ -12,7 +12,7 @@
 using namespace ArduinoJson;
 
 class IntegrationTests : public testing::TestWithParam<const char*> {
-  const static size_t MAX_JSON_SIZE = 10000;
+  static const size_t MAX_JSON_SIZE = 10000;
 
  protected:
   virtual void SetUp() {