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

error C2220: the following warning is treated as an errorchartpresenter.cpp(141): warning C4996: 'QScopedPointer<ChartAxisElement,QScopedPointerDeleter<T>>::take

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P0: Blocker
    • 6.2.5, 6.3.1, 6.4.0 Beta1
    • 6.4.0 FF
    • Charts
    • None
    • 24fa9b3b0b (qt/qtcharts/dev) b6d6848c6f (qt/qtcharts/6.2) 9c0385e6aa (qt/qtcharts/6.3) b6d6848c6f (qt/tqtc-qtcharts/6.2) 9c0385e6aa (qt/tqtc-qtcharts/6.3) b6d6848c6f (qt/tqtc-qtcharts/6.2)

    Description

      agent:2022/03/30 02:48:23 build.go:394: \Users\qt\work\qt\qtcharts\src\charts\chartpresenter.cpp(141): error C2220: the following warning is treated as an error
      agent:2022/03/30 02:48:23 build.go:394: \Users\qt\work\qt\qtcharts\src\charts\chartpresenter.cpp(141): warning C4996: 'QScopedPointer<ChartAxisElement,QScopedPointerDeleter<T>>::take': Use std::unique_ptr instead, and call release().
      agent:2022/03/30 02:48:23 build.go:394:         with
      agent:2022/03/30 02:48:23 build.go:394:         [
      agent:2022/03/30 02:48:23 build.go:394:             T=ChartAxisElement
      agent:2022/03/30 02:48:23 build.go:394:         ]
      agent:2022/03/30 02:48:23 build.go:394: \Users\qt\work\qt\qtcharts\src\charts\chartpresenter.cpp(172): warning C4996: 'QScopedPointer<ChartItem,QScopedPointerDeleter<T>>::take': Use std::unique_ptr instead, and call release().
      agent:2022/03/30 02:48:23 build.go:394:         with
      agent:2022/03/30 02:48:23 build.go:394:         [
      agent:2022/03/30 02:48:23 build.go:394:             T=ChartItem
      agent:2022/03/30 02:48:23 build.go:394:         ]
      

      Build log: https://testresults.qt.io/logs/qt/qtcharts/b7e34c2784ef8b5dd55cf69cdda0619d62e13320/WindowsWindows_11_21H2x86_64WindowsWindows_11_21H2x86_64MSVC2019qtci-windows-11_21H2-x86_64-51-abf73cDebugAndRelease_Sccache_WarningsAreErrors/1dfd87f1b50fae641def7c2cbbf711169410f3b6/build_1648608276/log.txt.gz

      Details: https://testresults.qt.io/coin/integration/qt/qtcharts/tasks/1648608256

      Tested changes (refs/builds/qtci/dev/1648608230):

      https://codereview.qt-project.org/c/qt/qtcharts/+/403248/2 Update dependencies on 'dev' in qt/qtcharts

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            janihe Jani Heikkinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes