Browse Source

Changed the copy constructor of properties to make a shallow copy.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/68/head
Dimitar Dobrev 12 years ago
parent
commit
de9f1056bc
  1. 16
      src/AST/Property.cs

16
src/AST/Property.cs

@ -15,19 +15,9 @@ namespace CppSharp.AST @@ -15,19 +15,9 @@ namespace CppSharp.AST
: base(property)
{
QualifiedType = property.QualifiedType;
if (property.GetMethod != null)
GetMethod = new Method(property.GetMethod);
if (property.GetMethod == property.SetMethod)
{
SetMethod = GetMethod;
}
else
{
if (property.SetMethod != null)
SetMethod = new Method(property.SetMethod);
}
if (property.Field != null)
Field = property.Field;
GetMethod = property.GetMethod;
SetMethod = property.SetMethod;
Field = property.Field;
parameters.AddRange(property.Parameters);
}

Loading…
Cancel
Save