generator: fix optional parameters again
This commit is contained in:
parent
949c538fe3
commit
ddd2419151
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ namespace GtkSharp.Generation {
|
|||
result [i] = p.PassAs != "" ? p.PassAs + " " : "";
|
||||
if (p.IsOptional && p.PassAs == String.Empty) {
|
||||
if (p.Generatable is StructGen || p.Generatable is BoxedGen)
|
||||
result [i++] += " .Zero";
|
||||
result [i++] += p.CSType + ".Zero";
|
||||
else if (p.CSType == "System.IntPtr")
|
||||
result [i++] += "System.IntPtr.Zero";
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue