Skip to content

Commit

Permalink
Fix -Weffc++ warnings (GNU 6.3.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
TedLyngmo committed Mar 11, 2017
1 parent 5b809b9 commit 70bbf19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6172,21 +6172,6 @@ class basic_json
thousands_sep(!loc->thousands_sep ? '\0' : loc->thousands_sep[0]),
decimal_point(!loc->decimal_point ? '\0' : loc->decimal_point[0])
{}
serializer(const serializer& cpy)
: o(cpy.o),
thousands_sep(cpy.thousands_sep),
decimal_point(cpy.decimal_point),
loc(cpy.loc),
indent_string(cpy.indent_string)
{}
serializer& operator=(const serializer& rhs) {
o = rhs.o;
thousands_sep = rhs.thousands_sep;
decimal_point = rhs.decimal_point;
loc = rhs.loc;
indent_string = rhs.indent_string;
return *this;
}

/*!
@brief internal implementation of the serialization function
Expand Down
15 changes: 0 additions & 15 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -6172,21 +6172,6 @@ class basic_json
thousands_sep(!loc->thousands_sep ? '\0' : loc->thousands_sep[0]),
decimal_point(!loc->decimal_point ? '\0' : loc->decimal_point[0])
{}
serializer(const serializer& cpy)
: o(cpy.o),
thousands_sep(cpy.thousands_sep),
decimal_point(cpy.decimal_point),
loc(cpy.loc),
indent_string(cpy.indent_string)
{}
serializer& operator=(const serializer& rhs) {
o = rhs.o;
thousands_sep = rhs.thousands_sep;
decimal_point = rhs.decimal_point;
loc = rhs.loc;
indent_string = rhs.indent_string;
return *this;
}

/*!
@brief internal implementation of the serialization function
Expand Down

0 comments on commit 70bbf19

Please sign in to comment.