solitone wrote:
> I also had an issue with CTrackDB.cpp--on my platform it
> wouldn't compile because no abs() function supports quint32 arguments.
>
> I therefore used qAbs() instead of abs():
>
> --------------------------------------------------------------------
> foreach(const CTrack::pt_t& trkpt, trkpts)
> {
>     if (qAbs(timestamp - trkpt.timestamp) < delta)                    
>      //(abs(timestamp - trkpt.timestamp) < delta)
>     {
>       delta = qAbs(timestamp - trkpt.timestamp);
>             //abs(timestamp - trkpt.timestamp);                       
>       if(delta < maxDelta)
>       {
>         selTrkPt = &trkpt;
>       }
>     }
> }
> --------------------------------------------------------------------

Does this make sense?

Would this change work for all platforms, or is it specific to Win32, 
and so I'd need to use #ifdef macros?


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Qlandkartegt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users

Reply via email to