forked from bblanchon/ArduinoJson
Fixed warnings in Visual Studio
This commit is contained in:
@ -56,6 +56,9 @@ class JsonWriter {
|
|||||||
|
|
||||||
Print &_sink;
|
Print &_sink;
|
||||||
size_t _length;
|
size_t _length;
|
||||||
|
|
||||||
|
private:
|
||||||
|
JsonWriter &operator=(const JsonWriter &); // cannot be assigned
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,7 @@ class Prettyfier : public Print {
|
|||||||
virtual size_t write(uint8_t);
|
virtual size_t write(uint8_t);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
uint8_t _previousChar;
|
Prettyfier& operator=(const Prettyfier&); // cannot be assigned
|
||||||
IndentedPrint& _sink;
|
|
||||||
bool _inString;
|
|
||||||
|
|
||||||
bool inEmptyBlock() { return _previousChar == '{' || _previousChar == '['; }
|
bool inEmptyBlock() { return _previousChar == '{' || _previousChar == '['; }
|
||||||
|
|
||||||
@ -39,6 +37,10 @@ class Prettyfier : public Print {
|
|||||||
size_t handleNormalChar(uint8_t);
|
size_t handleNormalChar(uint8_t);
|
||||||
size_t indentIfNeeded();
|
size_t indentIfNeeded();
|
||||||
size_t unindentIfNeeded();
|
size_t unindentIfNeeded();
|
||||||
|
|
||||||
|
uint8_t _previousChar;
|
||||||
|
IndentedPrint& _sink;
|
||||||
|
bool _inString;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,9 @@ class StreamPrintAdapter : public Print {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// cannot be assigned
|
||||||
|
StreamPrintAdapter& operator=(const StreamPrintAdapter&);
|
||||||
|
|
||||||
std::ostream& _os;
|
std::ostream& _os;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user