[Marble-devel] Review Request 118040: [FIX] Make equality operator in GeoDataFlyTo compare m_view based on nodeType

Dennis Nienhüser earthwings at gentoo.org
Wed May 7 21:04:41 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/118040/#review57527
-----------------------------------------------------------

Ship it!


Good catch, please push!

- Dennis Nienhüser


On May 7, 2014, 7:53 p.m., Cruceru Calin-Cristian wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118040/
> -----------------------------------------------------------
> 
> (Updated May 7, 2014, 7:53 p.m.)
> 
> 
> Review request for Marble.
> 
> 
> Repository: marble
> 
> 
> Description
> -------
> 
> The current implementation of GeoDataFlyTo::operator== compares the m_view's which are GeoDataAbstractView pointers and it was causing some tests to fail after implementing TestGeoDataWriter::saveAndCompareEquality method. It was also caused by the fact that the unit tests for this operator were pretty poorely written.
> 
> The implementation I propose checks the nodeType of each m_view (this' and other's) and casts it to GeoDataCamera or GeoDataLookAt according to the check.
> 
> 
> Diffs
> -----
> 
>   src/lib/marble/geodata/data/GeoDataFlyTo.cpp 2ddcad8 
> 
> Diff: https://git.reviewboard.kde.org/r/118040/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Cruceru Calin-Cristian
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20140507/11746b85/attachment.html>


More information about the Marble-devel mailing list