Skip to content

Commit

Permalink
[sipify] fix remove value assignment in members
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 18, 2018
1 parent c1e1696 commit 1fe0fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Expand Up @@ -899,7 +899,7 @@ sub detect_non_method_member{
};

# remove struct member assignment
if ( $SIP_RUN != 1 && $ACCESS[$#ACCESS] == PUBLIC && $LINE =~ m/^(\s*\w+[\w<> *&:,]* \*?\w+) = [\-\w\:\.]+(\([^()]+\))?\s*;/ ){
if ( $SIP_RUN != 1 && $ACCESS[$#ACCESS] == PUBLIC && $LINE =~ m/^(\s*\w+[\w<> *&:,]* \*?\w+) = [\-\w\:\.]+(\([^()]*\))?\s*;/ ){
dbg_info("remove struct member assignment");
$LINE = "$1;";
}
Expand Down

0 comments on commit 1fe0fb7

Please sign in to comment.