From 647e0347723dba26d10269103e47bbd85c155c3a Mon Sep 17 00:00:00 2001 From: mappu Date: Fri, 7 Feb 2025 18:55:20 +1300 Subject: [PATCH] genbindings: block QStringConverterBase constructors --- cmd/genbindings/config-allowlist.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmd/genbindings/config-allowlist.go b/cmd/genbindings/config-allowlist.go index 4f65ab0a..91ae0072 100644 --- a/cmd/genbindings/config-allowlist.go +++ b/cmd/genbindings/config-allowlist.go @@ -323,6 +323,14 @@ func AllowMethod(className string, mm CppMethod) error { func AllowCtor(className string, mm CppMethod) bool { + if className == `QStringConverterBase` { + // Both the main ctor and the copy constructor were changed from public to protected between 6.8.1 and 6.8.2 + // @ref https://github.com/qt/qtbase/commit/41679e0b4398c0de38a8107642dc643fe2c3554f + // @ref https://github.com/mappu/miqt/issues/168 + // Block both ctors from generation + return false + } + // Default allow return true }