File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -465,6 +465,10 @@ sub remove_constructor_or_body {
465
465
next ;
466
466
}
467
467
468
+ # remove static const value assignment
469
+ # https://regex101.com/r/DyWkgn/1
470
+ $line =~ s / ^(\s *static const \w +(<([\w ()<>, ]|::)+>)? \w +) = .*;\s *(\/\/ .*)?$/ $1 ;/ ;
471
+
468
472
# remove struct member assignment
469
473
if ( $SIP_RUN != 1 && $ACCESS [$#ACCESS ] == PUBLIC && $line =~ m / ^(\s *\w +[\w <> *&:,]* \* ?\w +) = \w +(\( [^()]+\) )?;/ ){
470
474
dbg_info(" remove struct member assignment" );
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ class QgsSipifyHeader : QtClass<QVariant>
89
89
QgsMapLayer *mLayer;
90
90
};
91
91
92
+ static const int MONTHS;
93
+
92
94
explicit QgsSipifyHeader();
93
95
%Docstring
94
96
A constructor with definition in header
Original file line number Diff line number Diff line change @@ -134,6 +134,8 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
134
134
QgsMapLayer *mLayer = nullptr ;
135
135
};
136
136
137
+ static const int MONTHS = 60 * 60 * 24 * 30 ; // something
138
+
137
139
// ! A constructor with definition in header
138
140
explicit QgsSipifyHeader ()
139
141
: QtClass<QVariant>()
You can’t perform that action at this time.
0 commit comments