Skip to content

Commit 435d2a2

Browse files
committed
passes
1 parent 6123bd1 commit 435d2a2

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

src/lib_json/json_reader.cpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ class OldReader {
903903
std::string message;
904904
};
905905

906-
OldReader(OldFeatures const* features);
906+
OldReader(Features const& features);
907907
bool parse(const char* beginDoc,
908908
const char* endDoc,
909909
Value& root,
@@ -1000,13 +1000,13 @@ class OldReader {
10001000
Location lastValueEnd_;
10011001
Value* lastValue_;
10021002
std::string commentsBefore_;
1003-
OldFeatures features_;
1003+
Features features_;
10041004
bool collectComments_;
10051005
}; // OldReader
10061006

10071007
// complete copy of Read impl, for OldReader
10081008

1009-
OldReader::Reader(const Features& features)
1009+
OldReader::OldReader(Features const& features)
10101010
: errors_(), document_(), begin_(), end_(), current_(), lastValueEnd_(),
10111011
lastValue_(), commentsBefore_(), features_(features), collectComments_() {
10121012
}
@@ -1711,11 +1711,6 @@ std::string OldReader::getLocationLineAndColumn(Location location) const {
17111711
return buffer;
17121712
}
17131713

1714-
// Deprecated. Preserved for backward compatibility
1715-
std::string OldReader::getFormatedErrorMessages() const {
1716-
return getFormattedErrorMessages();
1717-
}
1718-
17191714
std::string OldReader::getFormattedErrorMessages() const {
17201715
std::string formattedMessage;
17211716
for (Errors::const_iterator itError = errors_.begin();
@@ -1793,9 +1788,9 @@ class OldCharReader : public CharReader {
17931788
public:
17941789
OldCharReader(
17951790
bool collectComments,
1796-
Features const* features)
1791+
Features const& features)
17971792
: collectComments_(collectComments)
1798-
, reader_(&features)
1793+
, reader_(features)
17991794
{}
18001795
virtual bool parse(
18011796
char const* beginDoc, char const* endDoc,

0 commit comments

Comments
 (0)