diff options
Diffstat (limited to 'Lib/intrusive_ptr.i')
-rw-r--r-- | Lib/intrusive_ptr.i | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/intrusive_ptr.i b/Lib/intrusive_ptr.i index 7a686cfc5..43e78f986 100644 --- a/Lib/intrusive_ptr.i +++ b/Lib/intrusive_ptr.i @@ -27,11 +27,10 @@ namespace SWIG_INTRUSIVE_PTR_NAMESPACE { }
%fragment("SWIG_intrusive_deleter", "header") {
-template<class T> struct SWIG_intrusive_deleter
-{
- void operator()(T * p)
- {
- if(p) intrusive_ptr_release(p);
+template<class T> struct SWIG_intrusive_deleter {
+ void operator()(T *p) {
+ if (p)
+ intrusive_ptr_release(p);
}
};
}
|