Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-87598

qdoc: Unnamed parameter results in default value of nullptr

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: None
    • Component/s: Build tools: qdoc
    • Labels:
      None

      Description

      struct Q_GUI_EXPORT QCocoaGLContext
      {
          QT_DECLARE_NATIVE_INTERFACE(QCocoaGLContext)
          static QOpenGLContext *fromNative(NSOpenGLContext *, QOpenGLContext *shareContext = nullptr);
          virtual NSOpenGLContext *nativeContext() const = 0;
      };
      

      results in

      <function name="fromNative" fullname="QNativeInterface::QCocoaGLContext::fromNative" href="qnativeinterface-qcocoaglcontext.html#fromNative" status="active" access="public" location="qopenglcontext_platform.h" filepath="/Users/torarne/build/qt/6.0-qmake/qtbase/include/QtGui/../../../../../../dev/qt/6.0/qtbase/src/gui/kernel/qopenglcontext_platform.h" lineno="75" documented="true" meta="plain" virtual="non" const="false" static="true" final="false" override="false" type="QOpenGLContext *" signature="QOpenGLContext * fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext)">
                          <parameter type="NSOpenGLContext *" name="nativeContext" default="nullptr"/>
                          <parameter type="QOpenGLContext *" name="shareContext" default="nullptr"/>
                      </function>
      

      while

      struct Q_GUI_EXPORT QCocoaGLContext
      {
          QT_DECLARE_NATIVE_INTERFACE(QCocoaGLContext)
          static QOpenGLContext *fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext = nullptr);
          virtual NSOpenGLContext *nativeContext() const = 0;
      };
      

      in

      <function name="fromNative" fullname="QNativeInterface::QCocoaGLContext::fromNative" href="qnativeinterface-qcocoaglcontext.html#fromNative" status="active" access="public" location="qopenglcontext_platform.h" filepath="/Users/torarne/build/qt/6.0-qmake/qtbase/include/QtGui/../../../../../../dev/qt/6.0/qtbase/src/gui/kernel/qopenglcontext_platform.h" lineno="75" documented="true" meta="plain" virtual="non" const="false" static="true" final="false" override="false" type="QOpenGLContext *" signature="QOpenGLContext * fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext)">
                          <parameter type="NSOpenGLContext *" name="nativeContext" default=""/>
                          <parameter type="QOpenGLContext *" name="shareContext" default="nullptr"/>
                      </function>
      

      both documented as:

      /*!
        \fn QOpenGLContext *QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext = nullptr)
      
        Hepps
      */
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              docinfrastructure Documentation Infrastructure Team
              Reporter:
              vestbo Tor Arne Vestbø
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes