Bug 339443 - GeoDataPlacemark::operator= seems incomplete
Summary: GeoDataPlacemark::operator= seems incomplete
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Bernhard Beschow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-27 04:24 UTC by Dennis Nienhüser
Modified: 2014-09-29 19:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2014-09-27 04:24:17 UTC
Adding GeoDataPlacemark::operator= in eaf2347 broke Marble::RouteRequestTest. Adding GeoDataFeature::operator=( other ); at the start of the method would fix that test but breaks TestGeoDataCopy (parent seems copied then). Since you (Bernhard) looked into all that anyway I'll leave it up to you to figure out a nice solution :)

********* Start testing of Marble::RouteRequestTest *********
Config: Using QTest library 4.8.6, Qt 4.8.6
PASS   : Marble::RouteRequestTest::initTestCase()
PASS   : Marble::RouteRequestTest::defaultConstructor()
FAIL!  : Marble::RouteRequestTest::reverse() Compared values are not the same
   Actual (request[1].name()): B
   Expected (QString("A")): A
   Loc: [/home/nienhues/marble/src/tests/RouteRequestTest.cpp(61)]
PASS   : Marble::RouteRequestTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped
********* Finished testing of Marble::RouteRequestTest *********
Comment 1 Bernhard Beschow 2014-09-29 19:26:05 UTC
Git commit b2cd9e64d53f7f213d0b2959ca8da7ae704d1506 by Bernhard Beschow.
Committed on 27/09/2014 at 16:47.
Pushed by beschow into branch 'master'.

don't copy GeoDataObject part of features

M  +1    -3    src/lib/marble/geodata/data/GeoDataFeature.cpp
M  +1    -1    src/lib/marble/geodata/data/GeoDataPlacemark.cpp
M  +0    -2    tests/TestGeoDataCopy.cpp

http://commits.kde.org/marble/b2cd9e64d53f7f213d0b2959ca8da7ae704d1506