mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-19 13:32:24 +02:00
Fixed cpplint warnings
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
/*
|
// Copyright Benoit Blanchon 2014
|
||||||
* Arduino JSON library
|
// MIT License
|
||||||
* Benoit Blanchon 2014 - MIT License
|
//
|
||||||
*/
|
// Arduino JSON library
|
||||||
|
// https://github.com/bblanchon/ArduinoJson
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -13,7 +14,7 @@ namespace Internals {
|
|||||||
// Converts a compact JSON string into an indented one.
|
// Converts a compact JSON string into an indented one.
|
||||||
class Prettyfier : public Print {
|
class Prettyfier : public Print {
|
||||||
public:
|
public:
|
||||||
Prettyfier(IndentedPrint& p) : _sink(p) {
|
explicit Prettyfier(IndentedPrint& p) : _sink(p) {
|
||||||
_previousChar = 0;
|
_previousChar = 0;
|
||||||
_inString = false;
|
_inString = false;
|
||||||
}
|
}
|
||||||
@ -40,4 +41,4 @@ class Prettyfier : public Print {
|
|||||||
size_t unindentIfNeeded();
|
size_t unindentIfNeeded();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
/*
|
// Copyright Benoit Blanchon 2014
|
||||||
* Arduino JSON library
|
// MIT License
|
||||||
* Benoit Blanchon 2014 - MIT License
|
//
|
||||||
*/
|
// Arduino JSON library
|
||||||
|
// https://github.com/bblanchon/ArduinoJson
|
||||||
|
|
||||||
#include "../../include/ArduinoJson/Internals/Prettyfier.hpp"
|
#include "../../include/ArduinoJson/Internals/Prettyfier.hpp"
|
||||||
|
|
||||||
@ -82,4 +83,4 @@ size_t Prettyfier::unindentIfNeeded() {
|
|||||||
|
|
||||||
_sink.unindent();
|
_sink.unindent();
|
||||||
return _sink.println();
|
return _sink.println();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user