Przeglądaj źródła

Fixed cpplint warnings

Benoit Blanchon 11 lat temu
rodzic
commit
e0ce711eb4

+ 1 - 1
include/ArduinoJson/JsonVariant.hpp

@@ -166,7 +166,7 @@ class JsonVariant : public Internals::JsonPrintable<JsonVariant> {
 
 
  private:
  private:
   // Special constructor used only to create _invalid.
   // 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
   // Helper for interger cast operators
   template <typename T>
   template <typename T>

+ 1 - 1
test/IntegrationTests.cpp

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