Bug 281129

Summary: build failure - Overloading ambiguity in mobile/lib/declarativeaconadiitem.cpp
Product: [Applications] kdepim Reporter: tropikhajma <tropikhajma>
Component: libkdepimAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: patch

Description tropikhajma 2011-08-31 19:04:00 UTC
Created attachment 63272 [details]
patch

Version:           4.7 (using KDE 4.7.0) 
OS:                Solaris

building kdepim 4.7.0 with the Solaris Studio 12.x compiler fails with
...
"/home/test/packages/BUILD/kdepim-4.7.0/mobile/lib/declarativeakonadiitem.cpp", line 54: Error: Overloading ambiguity between "std::sqrt(double)" and "std::sqrt(float)".

this can be resolved by using the qSqrt function instead - see patch

Reproducible: Always

Steps to Reproduce:
build kdepim

Actual Results:  
does not build

Expected Results:  
builds
Comment 1 Laurent Montel 2011-09-05 15:34:56 UTC
Patch applied in master and 4.7.2
Regards.