Browse Source

Cosmetic cleanup.

pull/406/merge
triton 11 years ago
parent
commit
026f1d39b2
  1. 13
      src/Generator/Passes/MultipleInheritancePass.cs

13
src/Generator/Passes/MultipleInheritancePass.cs

@ -150,15 +150,18 @@ namespace CppSharp.Passes
if (@interface.Bases.Count == 0) if (@interface.Bases.Count == 0)
{ {
Property instance = new Property(); var instance = new Property
instance.Namespace = @interface; {
instance.Name = Helpers.InstanceIdentifier; Namespace = @interface,
instance.QualifiedType = new QualifiedType(new BuiltinType(PrimitiveType.IntPtr)); Name = Helpers.InstanceIdentifier,
instance.GetMethod = new Method QualifiedType = new QualifiedType(new BuiltinType(PrimitiveType.IntPtr)),
GetMethod = new Method
{ {
SynthKind = FunctionSynthKind.InterfaceInstance, SynthKind = FunctionSynthKind.InterfaceInstance,
Namespace = @interface Namespace = @interface
}
}; };
@interface.Properties.Add(instance); @interface.Properties.Add(instance);
} }

Loading…
Cancel
Save