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

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

    XMLWordPrintable

Details

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

    Description

      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();
      }
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-109449
          # Subject Branch Project Status CR V

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes