From 54232d6ea98a313390ee8f36bbadadce49ff97f3 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 29 Sep 2020 18:11:23 +0200 Subject: Streamline the template specialization of QESDP's dtor Declaring and implementing out of line a specialization for QESDP's destructor is needed if we have an implicitly shared type and we want to provide an inline move constructor for it. The code is however a bit heavy on the eyes, and the full implementation for the destructor must be provided (read: copy and pasted) -- the specialization destructor cannot just "reuse" the one from the primary template. This patch adds a few macros to streamline the above, so that we can start using the same pattern in more places. These macros are completely private for the moment being; we don't want to push this solution for our users. Port QPixmap to the new macros. Change-Id: Ia6a51ad988483e44c9d97c0eca2fb003b6bd21e3 Reviewed-by: Thiago Macieira --- bin/syncqt.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/syncqt.pl b/bin/syncqt.pl index 3c8ccf9374..c22cbfa8d0 100755 --- a/bin/syncqt.pl +++ b/bin/syncqt.pl @@ -233,6 +233,7 @@ sub classNames { $line .= ";" if($line =~ m/^QT_(BEGIN|END)_NAMESPACE(_[A-Z]+)*[\r\n]*$/); #qt macro $line .= ";" if($line =~ m/^QT_MODULE\(.*\)[\r\n]*$/); # QT_MODULE macro $line .= ";" if($line =~ m/^QT_WARNING_(PUSH|POP|DISABLE_\w+\(.*\))[\r\n]*$/); # qt macros + $line .= ";" if($line =~ m/^QT_DECLARE_QE?SDP_SPECIALIZATION_DTOR(_WITH_EXPORT)?\(.*\)[\r\n]*$/); # qt macros $$requires = $1 if ($line =~ m/^QT_REQUIRE_CONFIG\((.*)\);[\r\n]*$/); $parsable .= " " . $line; } -- cgit v1.2.3