|
|
|
@ -186,8 +186,7 @@ namespace CppSharp.Generators.CSharp
@@ -186,8 +186,7 @@ namespace CppSharp.Generators.CSharp
|
|
|
|
|
if (Context.Function != null && |
|
|
|
|
Context.Function.OperatorKind == CXXOperatorKind.Subscript) |
|
|
|
|
{ |
|
|
|
|
if (type.IsPrimitiveType(primitive) || |
|
|
|
|
new QualifiedType(pointer, quals).IsConstRefToPrimitive()) |
|
|
|
|
if (type.IsPrimitiveType(primitive)) |
|
|
|
|
{ |
|
|
|
|
Context.Return.Write("*"); |
|
|
|
|
} |
|
|
|
@ -199,6 +198,9 @@ namespace CppSharp.Generators.CSharp
@@ -199,6 +198,9 @@ namespace CppSharp.Generators.CSharp
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (new QualifiedType(pointer, quals).IsConstRefToPrimitive()) |
|
|
|
|
Context.Return.Write("*"); |
|
|
|
|
|
|
|
|
|
Context.Return.Write(Context.ReturnVarName); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|