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

QContiguousCache assignment operator does not compile

    XMLWordPrintable

Details

    • 9269dcc8ed9839c403f4f88edd79d0b8f0945d4a

    Description

      QContiguousCache assignment operator does not compile.
      Type conversion error:

      Qt5/5.4/gcc_64/include/QtCore/qcontiguouscache.h:294: error: invalid conversion from 'QContiguousCacheData*' to 'QContiguousCache<QList<TYPE> >::Data* {aka QContiguousCacheTypedData<QList<TYPE> >*}' [-fpermissive]
               freeData(d);
      
      Qt5/5.4/gcc_64/include/QtCore/qcontiguouscache.h:294: error: 'QContiguousCacheData' is an inaccessible base of 'QContiguousCacheTypedData<QList<TYPE> >'
               freeData(d);
                         ^
      

      I believe this call should use the subclass union type p like all other freeData calls: freeData(p)
      ^

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            gurgel Jason Gurgel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes