diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-11 22:31:19 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-12 08:22:31 +0000 |
commit | 8244930de265550ecafeff57d0d55dfceace3a79 (patch) | |
tree | 827c2bb4c196e128ee72980b512c7c9cd2b52948 /sources/shiboken6/libshiboken/signature/signature.cpp | |
parent | 12c93597dd09c68e2d619e03f9867afbc56dcf48 (diff) |
Fix build with g++ 9.3.0-1
Use Shiboken::AutoDecRef::isNull(), fixing:
sources/shiboken6/libshiboken/signature/signature.cpp:461:13: error: ambiguous overload for ‘operator==’ (operand types are ‘Shiboken::AutoDecRef’ and ‘std::nullptr_t’)
Change-Id: I9dc723b30b54c1e5219cf5e3b7e973ea5ee840bd
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/libshiboken/signature/signature.cpp')
-rw-r--r-- | sources/shiboken6/libshiboken/signature/signature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/libshiboken/signature/signature.cpp b/sources/shiboken6/libshiboken/signature/signature.cpp index f69c00b24..3dd06ada0 100644 --- a/sources/shiboken6/libshiboken/signature/signature.cpp +++ b/sources/shiboken6/libshiboken/signature/signature.cpp @@ -458,7 +458,7 @@ static PyObject *adjustFuncName(const char *func_name) // This is a very cheap call into `mapping.py`. PyObject *update_mapping = PyDict_GetItemString(ns, "update_mapping"); AutoDecRef res(PyObject_CallFunctionObjArgs(update_mapping, nullptr)); - if (res == nullptr) + if (res.isNull()) return nullptr; // Run `eval` on the type string to get the object. |