Skip to content

Commit 4a8fe0e

Browse files
authored
Use using instead of typedef
1 parent 1b7da41 commit 4a8fe0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib_json/json_reader.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,8 @@ OurFeatures OurFeatures::all() { return OurFeatures(); }
920920
// exact copy of Reader, renamed to OurReader
921921
class OurReader {
922922
public:
923-
typedef char Char;
924-
typedef const Char* Location;
923+
using Char = char;
924+
using Location = const Char*;
925925
struct StructuredError {
926926
ptrdiff_t offset_start;
927927
ptrdiff_t offset_limit;
@@ -977,7 +977,7 @@ class OurReader {
977977
Location extra_;
978978
};
979979

980-
typedef std::deque<ErrorInfo> Errors;
980+
using Errors = std::deque<ErrorInfo>;
981981

982982
bool readToken(Token& token);
983983
void skipSpaces();
@@ -1019,7 +1019,7 @@ class OurReader {
10191019
void addComment(Location begin, Location end, CommentPlacement placement);
10201020
void skipCommentTokens(Token& token);
10211021

1022-
typedef std::stack<Value*> Nodes;
1022+
using Nodes = std::stack<Value*>;
10231023
Nodes nodes_;
10241024
Errors errors_;
10251025
JSONCPP_STRING document_;

0 commit comments

Comments
 (0)