@@ -903,7 +903,7 @@ class OldReader {
903
903
std::string message;
904
904
};
905
905
906
- OldReader (OldFeatures const * features);
906
+ OldReader (Features const & features);
907
907
bool parse (const char * beginDoc,
908
908
const char * endDoc,
909
909
Value& root,
@@ -1000,13 +1000,13 @@ class OldReader {
1000
1000
Location lastValueEnd_;
1001
1001
Value* lastValue_;
1002
1002
std::string commentsBefore_;
1003
- OldFeatures features_;
1003
+ Features features_;
1004
1004
bool collectComments_;
1005
1005
}; // OldReader
1006
1006
1007
1007
// complete copy of Read impl, for OldReader
1008
1008
1009
- OldReader::Reader ( const Features& features)
1009
+ OldReader::OldReader ( Features const & features)
1010
1010
: errors_(), document_(), begin_(), end_(), current_(), lastValueEnd_(),
1011
1011
lastValue_(), commentsBefore_(), features_(features), collectComments_() {
1012
1012
}
@@ -1711,11 +1711,6 @@ std::string OldReader::getLocationLineAndColumn(Location location) const {
1711
1711
return buffer;
1712
1712
}
1713
1713
1714
- // Deprecated. Preserved for backward compatibility
1715
- std::string OldReader::getFormatedErrorMessages () const {
1716
- return getFormattedErrorMessages ();
1717
- }
1718
-
1719
1714
std::string OldReader::getFormattedErrorMessages () const {
1720
1715
std::string formattedMessage;
1721
1716
for (Errors::const_iterator itError = errors_.begin ();
@@ -1793,9 +1788,9 @@ class OldCharReader : public CharReader {
1793
1788
public:
1794
1789
OldCharReader (
1795
1790
bool collectComments,
1796
- Features const * features)
1791
+ Features const & features)
1797
1792
: collectComments_(collectComments)
1798
- , reader_(& features)
1793
+ , reader_(features)
1799
1794
{}
1800
1795
virtual bool parse (
1801
1796
char const * beginDoc, char const * endDoc,
0 commit comments