FontParserFontDescriptor& descResPtr = NULL;
This is an incorrect syntax in C++.
A reference variable in C++ must be initialized at the time of declaration and cannot be assigned a NULL value. Therefore, the correct syntax for declaring a reference variable and initializing it to NULL would be:
FontParser::FontDescriptor* descResPtr = NULL;
In this syntax, a pointer variable is declared and initialized to NULL, which can be later used to assign the address of a FontDescriptor object.
原文地址: https://www.cveoy.top/t/topic/gfqI 著作权归作者所有。请勿转载和采集!