Skip to content

Commit c29fc35

Browse files
committedJul 19, 2017
also "s/( )/()/;" in sipify.pl (followup 4f9a9e0)
1 parent 0665072 commit c29fc35

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed
 

‎scripts/sipify.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ sub fix_annotations {
253253
}
254254
# see https://regex101.com/r/5iNptO/4
255255
$line =~ s/(?<coma>, +)?(const )?(\w+)(\<(?>[^<>]|(?4))*\>)?\s+[\w&*]+\s+SIP_PYARGREMOVE( = [^()]*(\(\s*(?:[^()]++|(?6))*\s*\))?)?(?(<coma>)|,?)//g;
256+
$line =~ s/\(\s+\)/()/;
256257
}
257258
$line =~ s/SIP_FORCE//;
258259
return $line;

‎tests/code_layout/sipifyheader.expected.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,15 @@ Mulitline body
304304
void combinedAnnotations() /Factory,PyName=otherName/;
305305
void multiAnnotationArg( SomeClass **object /Out,TransferBack/, int &another /Out/ );
306306

307-
void simple( );
307+
void simple();
308308
%Docstring
309309
remove argument
310310
%End
311311
void method( );
312312
void test( );
313313
void avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers );
314314

315-
void position( );
315+
void position();
316316
void position( bool keep );
317317
void position( bool keep, bool keep );
318318
void position( bool keep );

‎tests/code_layout/sipifyheader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
333333

334334
//! remove argument
335335
void simple( bool test SIP_PYARGREMOVE );
336-
void method( bool myArg SIP_PYARGREMOVE = test );
336+
void method( bool myArg SIP_PYARGREMOVE = test );
337337
void test( QgsMapLayer *vl SIP_PYARGREMOVE = nullptr );
338338
void avoidIntersections( const QList<QgsVectorLayer *> &avoidIntersectionsLayers,
339339
const QHash<QgsVectorLayer *, QSet<QgsFeatureId> > &ignoreFeatures SIP_PYARGREMOVE = ( QHash<QgsVectorLayer *, QSet<QgsFeatureId> >() ) );

0 commit comments

Comments
 (0)
Please sign in to comment.