<table><tr><td style="">dcaliste created this revision.<br />dcaliste added reviewers: leinir, danders, Calligra: 3.0.<br />dcaliste added a project: Calligra: 3.0.<br />Herald added a subscriber: Calligra-Devel-list.<br />dcaliste requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15053">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>On my ARM environment, qreal is interpreted as float, not double. Currently in libs/pigment, qreal is implicitly treated like a double, while writing something like qmax(v, 0.), where v is a qreal. 0. is a double and the compiler complains because there is no function using (float, double).</p>

<p>There are also many conversions that are done between floats and doubles in KoColorSpace.cpp. So I've updated all necessary functions to accept qreal instead of double or float. As a result, the API has been changed. I've checked that it's still compiling on amd64 in addition to arm for instance but I'm not sure that I didn't break something in the plugins for instance.</p>

<p>I would like to hear your review on this patch. If I'm creating some issues, I'm eager to try to solve them.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R8 Calligra</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15053">https://phabricator.kde.org/D15053</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libs/pigment/KoColorConversions.cpp<br />
libs/pigment/KoColorSpace.cpp<br />
libs/pigment/KoColorSpace.h<br />
libs/pigment/KoColorSpaceAbstract.h<br />
libs/pigment/KoColorSpaceTraits.h<br />
libs/pigment/colorprofiles/KoDummyColorProfile.cpp<br />
libs/pigment/colorprofiles/KoDummyColorProfile.h<br />
libs/pigment/colorspaces/KoAlphaColorSpace.h<br />
libs/pigment/colorspaces/KoLabColorSpace.cpp<br />
libs/pigment/colorspaces/KoLabColorSpace.h<br />
libs/pigment/colorspaces/KoRgbU16ColorSpace.cpp<br />
libs/pigment/colorspaces/KoRgbU16ColorSpace.h<br />
libs/pigment/colorspaces/KoRgbU8ColorSpace.cpp<br />
libs/pigment/colorspaces/KoRgbU8ColorSpace.h<br />
libs/pigment/colorspaces/KoSimpleColorSpace.h</div></div></div><br /><div><strong>To: </strong>dcaliste, leinir, danders, Calligra: 3.0<br /><strong>Cc: </strong>Calligra-Devel-list, cochise, vandenoever<br /></div>