D: Fix class/method name ambiguity in test-suite/c_delete.i.
There might be other cases where this happens when $dclassname is used for code emitted into the proxy class itself, but so far, there are none in the test suite or any bug reports.
This commit is contained in:
parent
2faef96e0a
commit
95e8db7c62
2 changed files with 6 additions and 6 deletions
|
|
@ -152,7 +152,7 @@ public this(void* cObject, bool ownCObject) {
|
|||
swigCMemOwn = ownCObject;
|
||||
}
|
||||
|
||||
public static void* swigGetCPtr($dclassname obj) {
|
||||
public static void* swigGetCPtr(typeof(this) obj) {
|
||||
return (obj is null) ? null : obj.swigCPtr;
|
||||
}
|
||||
%}
|
||||
|
|
@ -167,7 +167,7 @@ public this(void* cObject, bool ownCObject) {
|
|||
swigCMemOwn = ownCObject;
|
||||
}
|
||||
|
||||
public static void* swigGetCPtr($dclassname obj) {
|
||||
public static void* swigGetCPtr(typeof(this) obj) {
|
||||
return (obj is null) ? null : obj.swigCPtr;
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue