Skip to content

Commit 18c1e62

Browse files
committedApr 10, 2017
[sipify] Also skip mutable protected members
1 parent fc2581c commit 18c1e62

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎scripts/sipify.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ sub processDoxygenLine
296296
}
297297

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

‎tests/scripts/sipifyheader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
228228

229229
Whatever skipMember;
230230
Whatever::Something *alsoSkipMember = nullptr;
231+
mutable Whatever alsoSkipThis;
231232
Some<Other> memberToSkip;
232233

233234
private:

0 commit comments

Comments
 (0)
Please sign in to comment.