summaryrefslogtreecommitdiff
path: root/examples/svg/network/bearercloud/bearercloud.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-01-12 18:02:45 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2017-07-14 09:08:30 +0000
commit5e80f69c33f696e8c62ac74fbb9a91de61cfe65d (patch)
treee7f30f4944cbfc3e9a662a01c76eab3b76769fde /examples/svg/network/bearercloud/bearercloud.cpp
parentaf289aced943418128f84c753017d571ed1e4d4d (diff)
downloadqtsvg-5e80f69c33f696e8c62ac74fbb9a91de61cfe65d.tar.gz
Be (somewhat more) consistent about the value of pi
Use M_PI (from qmath.h) rather than hand-rolled values. Simplify some untidy arithmetic, eliminating some duplication and inefficiency. Task-number: QTBUG-58083 Change-Id: I6ec5a91cae30693e0c17f80e2be235faa1edcdb7 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'examples/svg/network/bearercloud/bearercloud.cpp')
-rw-r--r--examples/svg/network/bearercloud/bearercloud.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/svg/network/bearercloud/bearercloud.cpp b/examples/svg/network/bearercloud/bearercloud.cpp
index d3f02f2..6a6b4d1 100644
--- a/examples/svg/network/bearercloud/bearercloud.cpp
+++ b/examples/svg/network/bearercloud/bearercloud.cpp
@@ -48,11 +48,7 @@
#include <QDebug>
-#include <math.h>
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
+#include <qmath.h>
//! [0]
BearerCloud::BearerCloud(QObject *parent)