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

tst_bmtrimpath.cpp:243:59: error: use of overloaded operator '+' is ambiguous

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.9.0 FF
    • 6.9.0 FF
    • Lottie
    • None
    • d87645783 (dev), b7e13a82a (dev), 07a0ecf81 (dev)

    Description

      /Users/qt/work/qt/qtlottie/tests/auto/bodymovin/shape/trimpath/tst_bmtrimpath.cpp:243:59: error: use of overloaded operator '+' is ambiguous (with operand types 'QLatin1String' and 'const QByteArray')
          QFile sourceFile(QFINDTESTDATA(QLatin1String("data/") + filename));
                                         ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
      /Users/qt/work/install/lib/QtTest.framework/Headers/qtestcase.h:297:26: note: expanded from macro 'QFINDTESTDATA'
          QTest::qFindTestData(basepath, __FILE__, __LINE__, QT_TESTCASE_BUILDDIR, QT_TESTCASE_SOURCEDIR)
                               ^~~~~~~~
      /Users/qt/work/install/lib/QtCore.framework/Headers/qbytearray.h:692:19: note: candidate function
      inline QByteArray operator+(QByteArrayView lhs, const QByteArray &rhs)
                        ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qstring.h:1455:35: note: candidate function
      QT_ASCII_CAST_WARN inline QString operator+(QString &&lhs, const QByteArray &rhs)
                                        ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qstring.h:1425:16: note: candidate function
      inline QString operator+(QString &&lhs, const QString &rhs)
                     ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qstring.h:1447:35: note: candidate function
      QT_ASCII_CAST_WARN inline QString operator+(QString &&lhs, const char *rhs)
                                        ^
      /Users/qt/work/install/lib/QtCore.framework/Headers/qstring.h:1453:35: note: candidate function
      QT_ASCII_CAST_WARN inline QString operator+(const QString &s, const QByteArray &ba)
                                        ^
      1 error generated.
      

      Build log: https://testresults.qt.io/logs/qt/qtlottie/b5d1db6429bf92b3822d11b0d6bd0310ad047ad8/MacOSMacOS_14arm64MacOSMacOS_14arm64Clangqtci-macos-14-arm-106-bd9a4cUseConfigure_WarningsAreErrors/141536bc5e23ca2efb313affa13d647056b89ece/build_1723210062/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtlottie/tasks/1723209983

      Tested changes (refs/builds/qtci/dev/1723209632):
      https://codereview.qt-project.org/c/qt/qtlottie/+/582200/2 Update dependencies on 'dev' in qt/qtlottie

      Attachments

        Issue Links

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

          Activity

            People

              vhilshei Volker Hilsheimer
              janihe Jani Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes