mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-15 11:36:36 +02:00
Switched to Google coding style to match cpplint expectations
This commit is contained in:
@ -7,23 +7,19 @@
|
||||
using namespace ArduinoJson;
|
||||
|
||||
void JsonValue::operator=(bool value) {
|
||||
if (_node)
|
||||
_node->setAsBoolean(value);
|
||||
if (_node) _node->setAsBoolean(value);
|
||||
}
|
||||
|
||||
void JsonValue::operator=(char const *value) {
|
||||
if (_node)
|
||||
_node->setAsString(value);
|
||||
if (_node) _node->setAsString(value);
|
||||
}
|
||||
|
||||
void JsonValue::set(double value, int decimals) {
|
||||
if (_node)
|
||||
_node->setAsDouble(value, decimals);
|
||||
if (_node) _node->setAsDouble(value, decimals);
|
||||
}
|
||||
|
||||
void JsonValue::operator=(int value) {
|
||||
if (_node)
|
||||
_node->setAsLong(value);
|
||||
if (_node) _node->setAsLong(value);
|
||||
}
|
||||
|
||||
JsonValue::operator bool() const {
|
||||
|
Reference in New Issue
Block a user