Skip to content

Commit a5295ba

Browse files
committed
Cpp Template: TrackField/PushElement -> AddElement
1 parent 144dafe commit a5295ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/generator/c/templates/binding-cpp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void {{$entity.Meta.CppNamespacePrefix}}{{$entity.Meta.CppName}}::_OBX_MetaInfo:
5252
{{range $property := $entity.Properties}}
5353
{{- if $property.Meta.Optional}}if (object.{{$property.Meta.CppName}}) {{end}}
5454
{{- if $property.Meta.FbOffsetFactory}}fbb.AddOffset({{$property.FbvTableOffset}}, offset{{$property.Meta.CppName}});
55-
{{- else}}fbb.TrackField({{$property.FbvTableOffset}}, fbb.PushElement<{{$property.Meta.CppFbType}}>({{template "field-value" $property.Meta}}{{if eq "bool" $property.Meta.CppType}} ? 1 : 0{{end}}));
55+
{{- else}}fbb.AddElement({{$property.FbvTableOffset}}, {{template "field-value" $property.Meta}}{{if eq "bool" $property.Meta.CppType}} ? 1 : 0{{end}});
5656
{{- end}}
5757
{{end -}}
5858
flatbuffers::Offset<flatbuffers::Table> offset;

0 commit comments

Comments
 (0)