diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-05-27 19:34:54 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-05-28 00:45:24 +0100 |
commit | ff21a0bca92c1a01c72023165acab3c6a0e5fbc9 (patch) | |
tree | d3c91269992c3d996c67129df2c4ece2a2787839 | |
parent | a91d1b5a4286e7fdf307ec8d21a248eb63a57a33 (diff) | |
download | swig-ff21a0bca92c1a01c72023165acab3c6a0e5fbc9.tar.gz |
Remove unused variables from C# boost::intrusive_ptr wrappers
-rw-r--r-- | Lib/csharp/boost_intrusive_ptr.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/csharp/boost_intrusive_ptr.i b/Lib/csharp/boost_intrusive_ptr.i index 1cc5efda7..761d192a7 100644 --- a/Lib/csharp/boost_intrusive_ptr.i +++ b/Lib/csharp/boost_intrusive_ptr.i @@ -21,7 +21,7 @@ // Typemap customisations...
-%typemap(in, canthrow=1) CONST TYPE ($&1_type argp = 0, SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *smartarg = 0) %{
+%typemap(in, canthrow=1) CONST TYPE ($&1_type argp = 0) %{ // plain value
argp = (*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input) ? (*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input)->get() : 0;
if (!argp) {
@@ -56,7 +56,7 @@ #endif
%}
-%typemap(in, canthrow=1) CONST TYPE & (SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *smartarg = 0) %{
+%typemap(in, canthrow=1) CONST TYPE & %{ // plain reference
$1 = ($1_ltype)((*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input) ? (*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input)->get() : 0);
if(!$1) {
@@ -78,7 +78,7 @@ #endif
%}
-%typemap(in) TYPE *CONST& ($*1_ltype temp = 0, SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > *smartarg = 0) %{
+%typemap(in) TYPE *CONST& ($*1_ltype temp = 0) %{ // plain pointer by reference
temp = ($*1_ltype)((*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input) ? (*(SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< CONST TYPE > **)&$input)->get() : 0);
$1 = &temp;
|