mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +00:00
Use fully qualified names of structs in UnPack
This commit is contained in:
@@ -975,8 +975,10 @@ class CppGenerator : public BaseGenerator {
|
||||
if (invector) {
|
||||
return "*" + val;
|
||||
} else {
|
||||
return "std::unique_ptr<" + type.struct_def->name +
|
||||
">(new " + type.struct_def->name + "(*" + val + "))";
|
||||
return "std::unique_ptr<" +
|
||||
WrapInNameSpace (*type.struct_def) +
|
||||
">(new " +
|
||||
WrapInNameSpace (*type.struct_def) + "(*" + val + "))";
|
||||
}
|
||||
} else {
|
||||
return val + "->UnPack()";
|
||||
|
||||
Reference in New Issue
Block a user