aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah BrĂ¼chert <jbb.prv@gmx.de>2019-11-12 22:37:08 +0100
committerDenis Kenzior <denkenz@gmail.com>2019-11-18 13:59:07 -0600
commit58604c41ab34f6241afe120f37764a2143eba102 (patch)
tree2f0c3278811a00b1200bc69d677fc1bb631e8b04
parent7216b9fd3c0285a5e5dd1d5e1e21c618eb18eb1c (diff)
downloadphonesim-58604c41ab34f6241afe120f37764a2143eba102.tar.gz
Replace deprecated headers
Done using the modernize-deprecated-headers check of clang-tidy
-rw-r--r--src/main.cpp2
-rw-r--r--src/phonesim.h6
-rw-r--r--src/qsmsmessage.cpp2
-rw-r--r--src/qwsppdu.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b320140..712e767 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -22,7 +22,7 @@
#include <qapplication.h>
#include <qstring.h>
#include <qdebug.h>
-#include <stdlib.h>
+#include <cstdlib>
static void usage()
{
diff --git a/src/phonesim.h b/src/phonesim.h
index fef97d4..65ea794 100644
--- a/src/phonesim.h
+++ b/src/phonesim.h
@@ -33,11 +33,11 @@
#include <qpointer.h>
#include <qsimcontrolevent.h>
-#include <string.h>
-#include <stdlib.h>
+#include <cstring>
+#include <cstdlib>
#include <sys/types.h>
#include <unistd.h>
-#include <signal.h>
+#include <csignal>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/select.h>
diff --git a/src/qsmsmessage.cpp b/src/qsmsmessage.cpp
index ec158ef..518e542 100644
--- a/src/qsmsmessage.cpp
+++ b/src/qsmsmessage.cpp
@@ -17,7 +17,7 @@
**
****************************************************************************/
-#include <stdlib.h>
+#include <cstdlib>
#include <qsmsmessage.h>
#include <qcbsmessage.h>
diff --git a/src/qwsppdu.cpp b/src/qwsppdu.cpp
index f487a35..def5675 100644
--- a/src/qwsppdu.cpp
+++ b/src/qwsppdu.cpp
@@ -24,7 +24,7 @@
#include <qiodevice.h>
#include <qbuffer.h>
#include <netinet/in.h>
-#include <stdlib.h>
+#include <cstdlib>
// Reference: WAP-230-WSP
// Wireless Application Protocol