also initialize class member

This commit is contained in:
Xuanyi Zhou 2020-12-26 23:41:42 -05:00
parent 1e4f59d3ae
commit 5e50f27ed1

View File

@ -2039,7 +2039,8 @@ TEST(SchemaValidator, Ref_remote_issue1210) {
SchemaDocument** collection;
// Dummy private copy constructor & assignment operator.
SchemaDocumentProvider(const SchemaDocumentProvider&) {
// Function bodies added so that they compile in MSVC 2019.
SchemaDocumentProvider(const SchemaDocumentProvider&) : collection(NULL) {
}
SchemaDocumentProvider& operator=(const SchemaDocumentProvider&) {
return *this;