Fixed warnings in Visual Studio

This commit is contained in:
Benoit Blanchon
2014-11-11 18:18:26 +01:00
parent 160ff0961e
commit 3b77dbbed7
3 changed files with 11 additions and 3 deletions

View File

@ -56,6 +56,9 @@ class JsonWriter {
Print &_sink; Print &_sink;
size_t _length; size_t _length;
private:
JsonWriter &operator=(const JsonWriter &); // cannot be assigned
}; };
} }
} }

View File

@ -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;
}; };
} }
} }

View File

@ -17,6 +17,9 @@ class StreamPrintAdapter : public Print {
} }
private: private:
// cannot be assigned
StreamPrintAdapter& operator=(const StreamPrintAdapter&);
std::ostream& _os; std::ostream& _os;
}; };