Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-1892

"operator=" in QGeoManeuver class will cause those two objects use one memory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: Location
    • Labels:
      None
    • Environment:
      Latest Belle sw.

      Description

      Deep copy does not occur when datamembers of QGeoManeuver class is modified via "ver" object.

      QGeoManeuver ver;
      QGeoManeuver ver1(ver);
      QGeoManeuver ver2;
      ver2 = ver;
      ver.setPosition(QGeoCoordinate(10.0,10,0));
      //below lines will return true
      QVERIFY(ver == ver2);
      QVERIFY(ver1 == ver2);

        Attachments

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

          Activity

            People

            Assignee:
            alex Alex (closed Nokia identity) (Inactive)
            Reporter:
            tarmo Tarmo Lehto (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes