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

inlining QByteArray::isNull() causes BC break on static Qt builds

XMLWordPrintable

    • All
    • 3
    • 8602a224b (dev), db9d60435 (6.4), 7a850fc00 (6.5)
    • Foundation Sprint 72

      The change https://codereview.qt-project.org/c/qt/qtbase/+/419976 introduced inlining for QByteArray::isNull(). If this function is used in a library, the application fails to build on iOS, since for iOS we currently mandate static builds.

      A sample code would be:

      // application
      #include <QCoreApplication>
      
      #include "blibrary.h"
      
      int main(int argc, char *argv[])
      {
        doBLibrary();
      }
      
      #ifndef BLIBRARY_H
      #define BLIBRARY_H
      
      bool doBLibrary();
      
      #endif // BLIBRARY_H
      
      // library
      #include "blibrary.h"
      
      #include <QByteArray>
      
      bool doBLibrary()
      {
        return QByteArray().isNull();
      }
      

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

            mmutz Marc Mutz
            vminenko Vladimir Minenko
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes