rearrange
authorTommi Komulainen <tko@src.gnome.org>
Thu, 23 Oct 2008 17:40:25 +0000 (17:40 +0000)
committerTommi Komulainen <tko@src.gnome.org>
Thu, 23 Oct 2008 17:40:25 +0000 (17:40 +0000)
* giscanner/glibtransformer.py (_adjust_transfer): rearrange

svn path=/trunk/; revision=794

giscanner/glibtransformer.py

index b666c92..c2c0775 100644 (file)
@@ -799,10 +799,9 @@ class GLibTransformer(object):
             is_out = (param.direction != PARAM_DIRECTION_IN)
         else:
             is_out = True
-        if (is_out and
-            (param.transfer is None or param.transfer_inferred) and
-            is_object):
-            param.transfer = 'full'
+        if param.transfer is None or param.transfer_inferred:
+            if is_out and is_object:
+                param.transfer = 'full'
 
     def _adjust_throws(self, func):
         if func.parameters == []: