mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
[sipify] fix do not export template classes
This commit is contained in:
parent
f3c9b7245e
commit
1879f51781
@ -7,5 +7,4 @@ class_headerfile:
|
||||
|
||||
|
||||
no_export_macro:
|
||||
- QgsRange
|
||||
- QgsTemporalRange
|
||||
|
||||
|
||||
@ -906,7 +906,7 @@ while ($LINE_IDX < $LINE_COUNT){
|
||||
push @DECLARED_CLASSES, $CLASSNAME[$#CLASSNAME];
|
||||
}
|
||||
dbg_info("class: ".$CLASSNAME[$#CLASSNAME]);
|
||||
if ($LINE =~ m/\b[A-Z0-9_]+_EXPORT\b/ || $#CLASSNAME != 0 || $INPUT_LINES[$LINE_IDX-2] =~ m/^\s*template</){
|
||||
if ($LINE =~ m/\b[A-Z0-9_]+_EXPORT\b/ || $#CLASSNAME != 0 || $INPUT_LINES[$LINE_IDX-2] =~ m/^\s*template\s*</){
|
||||
# class should be exported except those not at top level or template classes
|
||||
# if class is not exported, then its methods should be (checked whenever leaving out the class)
|
||||
$EXPORTED[-1]++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user