Skip to content

Commit 5e50f27

Browse files
committed
also initialize class member
1 parent 1e4f59d commit 5e50f27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unittest/schematest.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2039,7 +2039,8 @@ TEST(SchemaValidator, Ref_remote_issue1210) {
20392039
SchemaDocument** collection;
20402040

20412041
// Dummy private copy constructor & assignment operator.
2042-
SchemaDocumentProvider(const SchemaDocumentProvider&) {
2042+
// Function bodies added so that they compile in MSVC 2019.
2043+
SchemaDocumentProvider(const SchemaDocumentProvider&) : collection(NULL) {
20432044
}
20442045
SchemaDocumentProvider& operator=(const SchemaDocumentProvider&) {
20452046
return *this;

0 commit comments

Comments
 (0)