[gobject-introspection] scanner: Remove array fields from List.clone()
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] scanner: Remove array fields from List.clone()
- Date: Thu, 15 Mar 2012 15:24:16 +0000 (UTC)
commit 6c13fbbc4bd278d067b21fbbe6450fc69b5256e6
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Wed Jan 11 16:47:01 2012 +0100
scanner: Remove array fields from List.clone()
These were apparently copied by mistake.
https://bugzilla.gnome.org/show_bug.cgi?id=667701
giscanner/ast.py | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 9e9d7c3..a78a9f1 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -677,11 +677,7 @@ class List(Type):
self.element_type = element_type
def clone(self):
- l = List(self.name, self.element_type)
- l.zeroterminated = self.zeroterminated
- l.length_param_name = self.length_param_name
- l.size = self.size
- return l
+ return List(self.name, self.element_type)
class Map(Type):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]