diff --git a/src/corelib/global/qnativeinterface.h b/src/corelib/global/qnativeinterface.h index e634615260c..d009ec5340b 100644 --- a/src/corelib/global/qnativeinterface.h +++ b/src/corelib/global/qnativeinterface.h @@ -104,11 +104,10 @@ namespace QNativeInterface::Private { I *nativeInterface() const \ { \ using T = std::decay_t; \ - using namespace QNativeInterface::Private; \ - static_assert(TypeInfo::template isCompatibleWith, \ + static_assert(QNativeInterface::Private::TypeInfo::template isCompatibleWith, \ "T::nativeInterface() requires that native interface I is compatible with T"); \ \ - return static_cast(resolveInterface(this, typeid(I), TypeInfo::revision())); \ + return static_cast(QNativeInterface::Private::resolveInterface(this, typeid(I), QNativeInterface::Private::TypeInfo::revision())); \ } // Provides a definition for the interface destructor