From 0911d8d796be4b65b67f5b52f4d15943796c471c Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 11 Nov 2014 16:41:45 +0100 Subject: [PATCH] Fixed cpplint warnings --- include/ArduinoJson/Internals/Prettyfier.hpp | 13 +++++++------ src/Internals/Prettyfier.cpp | 11 ++++++----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/include/ArduinoJson/Internals/Prettyfier.hpp b/include/ArduinoJson/Internals/Prettyfier.hpp index 2d220bf0..96c90515 100644 --- a/include/ArduinoJson/Internals/Prettyfier.hpp +++ b/include/ArduinoJson/Internals/Prettyfier.hpp @@ -1,7 +1,8 @@ -/* -* Arduino JSON library -* Benoit Blanchon 2014 - MIT License -*/ +// Copyright Benoit Blanchon 2014 +// MIT License +// +// Arduino JSON library +// https://github.com/bblanchon/ArduinoJson #pragma once @@ -13,7 +14,7 @@ namespace Internals { // Converts a compact JSON string into an indented one. class Prettyfier : public Print { public: - Prettyfier(IndentedPrint& p) : _sink(p) { + explicit Prettyfier(IndentedPrint& p) : _sink(p) { _previousChar = 0; _inString = false; } @@ -40,4 +41,4 @@ class Prettyfier : public Print { size_t unindentIfNeeded(); }; } -} \ No newline at end of file +} diff --git a/src/Internals/Prettyfier.cpp b/src/Internals/Prettyfier.cpp index f33fabd5..6636bbc8 100644 --- a/src/Internals/Prettyfier.cpp +++ b/src/Internals/Prettyfier.cpp @@ -1,7 +1,8 @@ -/* -* Arduino JSON library -* Benoit Blanchon 2014 - MIT License -*/ +// Copyright Benoit Blanchon 2014 +// MIT License +// +// Arduino JSON library +// https://github.com/bblanchon/ArduinoJson #include "../../include/ArduinoJson/Internals/Prettyfier.hpp" @@ -82,4 +83,4 @@ size_t Prettyfier::unindentIfNeeded() { _sink.unindent(); return _sink.println(); -} \ No newline at end of file +}