Skip to content

Commit

Permalink
[sipify] make all protected methods slots
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Oct 12, 2021
1 parent e8bb898 commit 070a3e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sipify.pl
Expand Up @@ -1018,6 +1018,9 @@ sub detect_non_method_member{
dbg_info("going protected");
$ACCESS[$#ACCESS] = PROTECTED;
$COMMENT = '';
# make all protected methods slots
# https://github.com/qgis/QGIS/issues/45331
$LINE =~ s/protected:/protected slots:/;
}
elsif ( $ACCESS[$#ACCESS] == PRIVATE && $LINE =~ m/SIP_FORCE/){
dbg_info("private with SIP_FORCE");
Expand Down

0 comments on commit 070a3e9

Please sign in to comment.