Skip to content

Commit

Permalink
[sipify] remove space before ModuleTypeHeader
Browse files Browse the repository at this point in the history
also update network analysis SIP files
  • Loading branch information
alexbruy authored and 3nids committed May 4, 2017
1 parent f626613 commit e1c3588
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 5 deletions.
18 changes: 17 additions & 1 deletion python/analysis/network/qgsgraphbuilderinterface.sip
Expand Up @@ -9,7 +9,23 @@



% ModuleHeaderCode
%ModuleHeaderCode
%Docstring
*************************************************************************
qgsgraphbuilderinterface.h
--------------------------------------
Date : 2010-10-22
Copyright : (C) 2010 by Yakushev Sergey
Email : YakushevS <at> list.ru
***************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
%End
#include <qgsgraphbuilder.h>
%End

Expand Down
18 changes: 17 additions & 1 deletion python/analysis/network/qgsgraphdirector.sip
Expand Up @@ -10,7 +10,23 @@



% ModuleHeaderCode
%ModuleHeaderCode
%Docstring
*************************************************************************
qgsgraphdirector.h
--------------------------------------
Date : 2010-10-18
Copyright : (C) 2010 by Yakushev Sergey
Email : YakushevS <at> list.ru
***************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
%End
#include <qgsvectorlayerdirector.h>
%End

Expand Down
18 changes: 17 additions & 1 deletion python/analysis/network/qgsnetworkstrategy.sip
Expand Up @@ -9,7 +9,23 @@



% ModuleHeaderCode
%ModuleHeaderCode
%Docstring
*************************************************************************
qgsnetworkstrategy.h
--------------------------------------
Date : 2011-04-01
Copyright : (C) 2010 by Yakushev Sergey
Email : YakushevS <at> list.ru
***************************************************************************
*
This program is free software; you can redistribute it and/or modify *
it under the terms of the GNU General Public License as published by *
the Free Software Foundation; either version 2 of the License, or *
(at your option) any later version. *
*
**************************************************************************
%End
#include <qgsnetworkspeedstrategy.h>
#include <qgsnetworkdistancestrategy.h>
%End
Expand Down
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Expand Up @@ -604,7 +604,7 @@ sub remove_constructor_or_body {
$line =~ s/SIP_FORCE//;

# fix astyle placing space after % character
$line =~ s/\s*% (MappedType|TypeCode|TypeHeaderCode|ConvertFromTypeCode|ConvertToTypeCode|MethodCode|End)/%$1/;
$line =~ s/\s*% (MappedType|TypeCode|TypeHeaderCode|ModuleHeaderCode|ConvertFromTypeCode|ConvertToTypeCode|MethodCode|End)/%$1/;
$line =~ s/\/\s+GetWrapper\s+\//\/GetWrapper\//;

push @output, dbg("NOR")."$line\n";
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/sipifyheader.expected.sip
Expand Up @@ -9,7 +9,7 @@



% ModuleHeaderCode
%ModuleHeaderCode
#include <qgsnetworkspeedstrategy.h>
#include <qgsnetworkdistancestrategy.h>
%End
Expand Down

0 comments on commit e1c3588

Please sign in to comment.