Minor rename in the 'smart_pointer_templatemethods' test-case to avoid special casing for D.
This is a part of the pending merge of the D module, where 'Object' is a keyword. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12296 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0fb77ce206
commit
4d09774cef
1 changed files with 6 additions and 7 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
%module smart_pointer_templatemethods
|
||||
|
||||
%inline %{
|
||||
|
|
@ -29,21 +28,21 @@ public:
|
|||
void DisposeObjekt (void) {}
|
||||
};
|
||||
|
||||
class Object
|
||||
class Objct
|
||||
{
|
||||
public:
|
||||
Object () {}
|
||||
virtual ~Object () {}
|
||||
Objct () {}
|
||||
virtual ~Objct () {}
|
||||
template <typename T> Ptr<T> QueryInterface (InterfaceId iid) const { return Ptr<T>(); }
|
||||
void DisposeObject (void) {}
|
||||
void DisposeObjct (void) {}
|
||||
};
|
||||
|
||||
#ifdef SWIG
|
||||
%template(PtrObject) Ptr<Object>;
|
||||
%template(PtrObjct) Ptr<Objct>;
|
||||
%template(PtrInt) Ptr<int>;
|
||||
%template(ObjektInt) Objekt<int>;
|
||||
%template(PtrObjektInt) Ptr<Objekt<int> >;
|
||||
%template(QueryInterfaceObject) Object::QueryInterface<Object>;
|
||||
%template(QueryInterfaceObjct) Objct::QueryInterface<Objct>;
|
||||
#endif
|
||||
|
||||
}; // namespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue