From 69a28d823f332cd56703d23376fc670fadbb4a40 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 1 Nov 2017 18:55:09 +0100 Subject: [PATCH] MOC compatible SIP_ABSTRACT version New version supports the following notation class QgsOutClass : public QObject // SIP_ABSTRACT MOC does not like lines like the following one and silently refuses to build the meta object for such classes class QgsOutClass : public QObject SIP_ABSTRACT --- scripts/sipify.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/sipify.pl b/scripts/sipify.pl index 0409c171816..613c5d298c8 100755 --- a/scripts/sipify.pl +++ b/scripts/sipify.pl @@ -210,6 +210,7 @@ sub remove_following_body_or_initializerlist { sub fix_annotations { my $line = $_[0]; # printed annotations + $line =~ s/\b\/\/\s*SIP_ABSTRACT\b/\/Abstract\//; $line =~ s/\bSIP_ABSTRACT\b/\/Abstract\//; $line =~ s/\bSIP_ALLOWNONE\b/\/AllowNone\//; $line =~ s/\bSIP_ARRAY\b/\/Array\//g;