[sipify] fix remove protected members

This commit is contained in:
Denis Rouzaud 2017-04-19 15:18:54 +02:00
parent 51aa44de5f
commit a260146e94
2 changed files with 3 additions and 1 deletions

View File

@ -299,7 +299,7 @@ while(!eof $header){
}
# skip non-method member declaration in non-public sections
if ( $SIP_RUN != 1 && $ACCESS != PUBLIC && $line =~ m/^\s*(?:mutable\s)?[\w<>]+(::\w+)? \*?\w+( = \w+(\([^()]+\))?)?;/){
if ( $SIP_RUN != 1 && $ACCESS != PUBLIC && $line =~ m/^\s*(?:mutable\s)?\w+[\w<> *&:,]* \*?\w+( = \w+(\([^()]+\))?)?;/){
next;
}

View File

@ -242,6 +242,8 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
Whatever::Something *alsoSkipMember = nullptr;
mutable Whatever alsoSkipThis;
Some<Other> memberToSkip;
QList<QgsMapLayer *> list2skip;
QMap<QString, Qt::CheckState> map2skip;
private:
void privateMethodAreNotShown();