Skip to content

Commit ad09629

Browse files
authored
Use using instead of typedef in writer
1 parent 4a8fe0e commit ad09629

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib_json/json_writer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
namespace Json {
7777

7878
#if __cplusplus >= 201103L || (defined(_CPPLIB_VER) && _CPPLIB_VER >= 520)
79-
typedef std::unique_ptr<StreamWriter> StreamWriterPtr;
79+
using StreamWriterPtr = std::unique_ptr<StreamWriter>;
8080
#else
81-
typedef std::auto_ptr<StreamWriter> StreamWriterPtr;
81+
using StreamWriterPtr = std::auto_ptr<StreamWriter>;
8282
#endif
8383

8484
static bool containsControlCharacter(const char* str) {
@@ -861,7 +861,7 @@ struct BuiltStyledStreamWriter : public StreamWriter
861861
void writeCommentAfterValueOnSameLine(Value const& root);
862862
static bool hasCommentForValue(const Value& value);
863863

864-
typedef std::vector<JSONCPP_STRING> ChildValues;
864+
using ChildValues = std::vector<JSONCPP_STRING>;
865865

866866
ChildValues childValues_;
867867
JSONCPP_STRING indentString_;

0 commit comments

Comments
 (0)