Skip to content

Commit 3f120ca

Browse files
committed
- replaced RAPIDJSON_NEW calls in fwdtest.cpp
1 parent 9fe93bb commit 3f120ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/unittest/fwdtest.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,23 @@ Foo::Foo() :
118118
memorypoolallocator(RAPIDJSON_NEW(MemoryPoolAllocator<>)),
119119

120120
// stream.h
121-
stringstream(RAPIDJSON_NEW(StringStream(0))),
122-
insitustringstream(RAPIDJSON_NEW(InsituStringStream(0))),
121+
stringstream(RAPIDJSON_NEW(StringStream, NULL)),
122+
insitustringstream(RAPIDJSON_NEW(InsituStringStream, NULL)),
123123

124124
// stringbuffer.h
125125
stringbuffer(RAPIDJSON_NEW(StringBuffer)),
126126

127127
// // filereadstream.h
128-
// filereadstream(RAPIDJSON_NEW(FileReadStream(stdout, buffer, sizeof(buffer)))),
128+
// filereadstream(RAPIDJSON_NEW(FileReadStream, stdout, buffer, sizeof(buffer))),
129129

130130
// // filewritestream.h
131-
// filewritestream(RAPIDJSON_NEW(FileWriteStream(stdout, buffer, sizeof(buffer)))),
131+
// filewritestream(RAPIDJSON_NEW(FileWriteStream, stdout, buffer, sizeof(buffer))),
132132

133133
// memorybuffer.h
134134
memorybuffer(RAPIDJSON_NEW(MemoryBuffer)),
135135

136136
// memorystream.h
137-
memorystream(RAPIDJSON_NEW(MemoryStream(0, 0))),
137+
memorystream(RAPIDJSON_NEW(MemoryStream, NULL, 0)),
138138

139139
// reader.h
140140
basereaderhandler(RAPIDJSON_NEW((BaseReaderHandler<UTF8<>, void>))),
@@ -154,8 +154,8 @@ Foo::Foo() :
154154
pointer(RAPIDJSON_NEW(Pointer)),
155155

156156
// schema.h
157-
schemadocument(RAPIDJSON_NEW(SchemaDocument(*document))),
158-
schemavalidator(RAPIDJSON_NEW(SchemaValidator(*schemadocument)))
157+
schemadocument(RAPIDJSON_NEW(SchemaDocument, *document)),
158+
schemavalidator(RAPIDJSON_NEW(SchemaValidator, *schemadocument))
159159
{
160160

161161
}

0 commit comments

Comments
 (0)