D16463: QtMath now provides M_PI constant, operations with degrees, and c++ provides round()
Chris Rizzitello
noreply at phabricator.kde.org
Fri Nov 2 16:51:44 GMT 2018
rizzitello added inline comments.
INLINE COMMENTS
> tcanabrava wrote in directiondialog.cpp:375
> this style of casting will give us a lot of warnings when compilling with clang.
> create a function that does a static_cast<int>(double) and return the int to get rid of the warnings.
Simply using the new cast style will remove the warning(s).
for example:
double x ;
int z = (int)x; // old style cast warning
int y = int(x); // no cast warning
REPOSITORY
R337 KTurtle
REVISION DETAIL
https://phabricator.kde.org/D16463
To: Shroudmaster, tcanabrava, rizzitello
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20181102/26285618/attachment-0001.html>
More information about the kde-edu
mailing list