No real changes, just narrow scope for a variable
Initialize "baselist" just where it is needed.
This commit is contained in:
parent
4995e96009
commit
dbb9cc250c
1 changed files with 1 additions and 2 deletions
|
|
@ -1286,11 +1286,10 @@ ready:
|
||||||
|
|
||||||
virtual int classHandler(Node *n) {
|
virtual int classHandler(Node *n) {
|
||||||
String *name = getNamespacedName(n);
|
String *name = getNamespacedName(n);
|
||||||
List *baselist = Getattr(n, "bases");
|
|
||||||
|
|
||||||
if (CPlusPlus) {
|
if (CPlusPlus) {
|
||||||
// inheritance support: attach all members from base classes to this class
|
// inheritance support: attach all members from base classes to this class
|
||||||
if (baselist) {
|
if (List *baselist = Getattr(n, "bases")) {
|
||||||
// We may need to specialize SWIG_derives_from<> for this class: its unique check() method will return true iff it's given the name of any subclasses of
|
// We may need to specialize SWIG_derives_from<> for this class: its unique check() method will return true iff it's given the name of any subclasses of
|
||||||
// this class. Notice that it may happen that all our base classes are ignored, in which case we don't do anything.
|
// this class. Notice that it may happen that all our base classes are ignored, in which case we don't do anything.
|
||||||
int specialize_derives_from = -1;
|
int specialize_derives_from = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue