aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-11-23 02:58:47 +0900
committerIvan Komissarov <ABBAPOH@gmail.com>2019-11-26 18:20:55 +0000
commita6bbe710087af5b76bf2275d7cddfdeb3938a520 (patch)
treee6478ab6bf860105fcc68c4ec8044ea5273b795a /examples
parente6bd7b1f2242e0b34aedccda790de7ea73794784 (diff)
Apply 'modernize-deprecated-headers' fix-it
C++ standard library provides "modern" headers for the functions from the C standard library Change-Id: I51ac83c1f072773c6a5909a2025e737be539e906 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/app-and-lib/app/main.cpp2
-rw-r--r--examples/app-and-lib/lib/lib.cpp2
-rw-r--r--examples/collidingmice/main.cpp2
-rw-r--r--examples/collidingmice/mouse.cpp2
-rw-r--r--examples/helloworld-complex/src/main.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/app-and-lib/app/main.cpp b/examples/app-and-lib/app/main.cpp
index 9d1eda989..17f4226f3 100644
--- a/examples/app-and-lib/app/main.cpp
+++ b/examples/app-and-lib/app/main.cpp
@@ -48,7 +48,7 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
#include <lib.h>
int main()
diff --git a/examples/app-and-lib/lib/lib.cpp b/examples/app-and-lib/lib/lib.cpp
index db312e2d2..bfa62ecf7 100644
--- a/examples/app-and-lib/lib/lib.cpp
+++ b/examples/app-and-lib/lib/lib.cpp
@@ -48,7 +48,7 @@
**
****************************************************************************/
-#include <stdio.h>
+#include <cstdio>
#ifndef CRUCIAL_DEFINE
# error CRUCIAL_DEFINE not defined
diff --git a/examples/collidingmice/main.cpp b/examples/collidingmice/main.cpp
index 6604cc597..ffddf4c81 100644
--- a/examples/collidingmice/main.cpp
+++ b/examples/collidingmice/main.cpp
@@ -56,7 +56,7 @@
#include <QTime>
#include <QTimer>
-#include <math.h>
+#include <cmath>
static const int MouseCount = 7;
diff --git a/examples/collidingmice/mouse.cpp b/examples/collidingmice/mouse.cpp
index 092054046..7075ada38 100644
--- a/examples/collidingmice/mouse.cpp
+++ b/examples/collidingmice/mouse.cpp
@@ -54,7 +54,7 @@
#include <QPainter>
#include <QStyleOption>
-#include <math.h>
+#include <cmath>
static const double Pi = 3.14159265358979323846264338327950288419717;
static double TwoPi = 2.0 * Pi;
diff --git a/examples/helloworld-complex/src/main.cpp b/examples/helloworld-complex/src/main.cpp
index f3dbcc4f7..691c401e5 100644
--- a/examples/helloworld-complex/src/main.cpp
+++ b/examples/helloworld-complex/src/main.cpp
@@ -54,7 +54,7 @@
#include "specialfeature.h"
#endif
-#include <stdio.h>
+#include <cstdio>
#ifndef HAVE_MAIN_CPP
# error missing define HAVE_MAIN_CPP