Commit 92e9f330 authored by Bryan Furia's avatar Bryan Furia Committed by Wouter van Oortmerssen

Don't check ForceDefaults when adding Offfset values (#5415)

parent ff1a22a0
...@@ -540,9 +540,9 @@ namespace FlatBuffers ...@@ -540,9 +540,9 @@ namespace FlatBuffers
/// </summary> /// </summary>
/// <param name="o">The index into the vtable</param> /// <param name="o">The index into the vtable</param>
/// <param name="x">The value to put into the buffer. If the value is equal to the default /// <param name="x">The value to put into the buffer. If the value is equal to the default
/// and <see cref="ForceDefaults"/> is false, the value will be skipped.</param> /// the value will be skipped.</param>
/// <param name="d">The default value to compare the value against</param> /// <param name="d">The default value to compare the value against</param>
public void AddOffset(int o, int x, int d) { if (ForceDefaults || x != d) { AddOffset(x); Slot(o); } } public void AddOffset(int o, int x, int d) { if (x != d) { AddOffset(x); Slot(o); } }
/// @endcond /// @endcond
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment