Skip to content

Commit 4568bcd

Browse files
committedJan 13, 2018
[sipify] prevent creation of param list when not necessary
1 parent 6d94ac9 commit 4568bcd

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed
 

‎python/core/qgsmaplayer.sip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,6 @@ Set whether provider notification is connected to triggerRepaint
12211221
%Docstring
12221222
Set the notification message that triggers repaine
12231223
If refresh on notification is enabled, the notification will triggerRepaint only
1224-
12251224
if the notification message is equal to:param message:
12261225

12271226
.. versionadded:: 3.0

‎python/core/qgsvectorlayercache.sip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ Query the layer for the features which intersect the specified rectangle.
154154
bool isFidCached( const QgsFeatureId fid ) const;
155155
%Docstring
156156
Check if a certain feature id is cached.
157-
158157
\param fid The feature id to look for
159158

160159
:return: True if this id is in the cache

‎python/gui/attributetable/qgsfeaturelistmodel.sip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ Constructor for QgsFeatureListModel
7272

7373
bool setDisplayExpression( const QString &expression );
7474
%Docstring
75-
7675
\param expression A QgsExpression compatible string.
7776

7877
:return: true if the expression could be set, false if there was a parse error.

‎scripts/sipify.pl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,14 @@ sub processDoxygenLine {
166166
# params
167167
if ( $line =~ m/\\param / ){
168168
$line =~ s/\s*\\param (\w+)\b/:param $1:/g;
169-
if ( $COMMENT_PARAM_LIST == 0 )
170-
{
171-
$line = "\n$line";
169+
if ( $line =~ m/^:param/ ){
170+
if ( $COMMENT_PARAM_LIST == 0 )
171+
{
172+
$line = "\n$line";
173+
}
174+
$COMMENT_PARAM_LIST = 1;
175+
$COMMENT_LAST_LINE_NOTE_WARNING = 0;
172176
}
173-
$COMMENT_PARAM_LIST = 1;
174-
$COMMENT_LAST_LINE_NOTE_WARNING = 0;
175177
}
176178

177179
if ( $line =~ m/^\s*[\\@]brief/){

0 commit comments

Comments
 (0)
Please sign in to comment.