summaryrefslogtreecommitdiff
path: root/splash
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-11-29 17:20:10 +0100
committerAlbert Astals Cid <aacid@kde.org>2019-11-29 18:11:40 +0100
commit1c1d9a70013125f67518f398a2b5abf37ec43cdd (patch)
treee1ea16e1db7a4763828e6f230e99eda95cd34f77 /splash
parent5713d0da012b734a28234455dcf817d5be20a98f (diff)
Enable modernize-deprecated-headers
Diffstat (limited to 'splash')
-rw-r--r--splash/Splash.cc10
-rw-r--r--splash/Splash.h2
-rw-r--r--splash/SplashBitmap.cc8
-rw-r--r--splash/SplashBitmap.h2
-rw-r--r--splash/SplashClip.cc4
-rw-r--r--splash/SplashFTFontEngine.cc2
-rw-r--r--splash/SplashFont.cc4
-rw-r--r--splash/SplashFontEngine.cc4
-rw-r--r--splash/SplashFontFile.cc2
-rw-r--r--splash/SplashMath.h2
-rw-r--r--splash/SplashPath.cc2
-rw-r--r--splash/SplashScreen.cc4
-rw-r--r--splash/SplashScreen.h2
-rw-r--r--splash/SplashState.cc2
-rw-r--r--splash/SplashXPath.cc4
-rw-r--r--splash/SplashXPathScanner.cc4
16 files changed, 29 insertions, 29 deletions
diff --git a/splash/Splash.cc b/splash/Splash.cc
index 9ae4bd30..d66a9c16 100644
--- a/splash/Splash.cc
+++ b/splash/Splash.cc
@@ -31,11 +31,11 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
-#include <limits.h>
-#include <assert.h>
-#include <math.h>
+#include <cstdlib>
+#include <cstring>
+#include <climits>
+#include <cassert>
+#include <cmath>
#include "goo/gmem.h"
#include "goo/GooLikely.h"
#include "poppler/Error.h"
diff --git a/splash/Splash.h b/splash/Splash.h
index 54f55220..aa7eccc6 100644
--- a/splash/Splash.h
+++ b/splash/Splash.h
@@ -25,7 +25,7 @@
#ifndef SPLASH_H
#define SPLASH_H
-#include <stddef.h>
+#include <cstddef>
#include "SplashTypes.h"
#include "SplashClip.h"
#include "SplashPattern.h"
diff --git a/splash/SplashBitmap.cc b/splash/SplashBitmap.cc
index e16baf6a..1dc158b4 100644
--- a/splash/SplashBitmap.cc
+++ b/splash/SplashBitmap.cc
@@ -34,10 +34,10 @@
#include <config.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <limits.h>
+#include <cstdio>
+#include <cstring>
+#include <cstdlib>
+#include <climits>
#include "goo/gfile.h"
#include "goo/gmem.h"
#include "SplashErrorCodes.h"
diff --git a/splash/SplashBitmap.h b/splash/SplashBitmap.h
index 3b98092f..cd2ea3a0 100644
--- a/splash/SplashBitmap.h
+++ b/splash/SplashBitmap.h
@@ -35,7 +35,7 @@
#include "SplashTypes.h"
#include "poppler/GfxState.h"
-#include <stdio.h>
+#include <cstdio>
class ImgWriter;
diff --git a/splash/SplashClip.cc b/splash/SplashClip.cc
index 0569c144..d4010710 100644
--- a/splash/SplashClip.cc
+++ b/splash/SplashClip.cc
@@ -22,8 +22,8 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#include "goo/gmem.h"
#include "SplashErrorCodes.h"
#include "SplashMath.h"
diff --git a/splash/SplashFTFontEngine.cc b/splash/SplashFTFontEngine.cc
index 7c016d03..ad43c15b 100644
--- a/splash/SplashFTFontEngine.cc
+++ b/splash/SplashFTFontEngine.cc
@@ -25,7 +25,7 @@
#include <config.h>
-#include <stdio.h>
+#include <cstdio>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/splash/SplashFont.cc b/splash/SplashFont.cc
index d18e006e..ffaa66a7 100644
--- a/splash/SplashFont.cc
+++ b/splash/SplashFont.cc
@@ -21,8 +21,8 @@
#include <config.h>
-#include <limits.h>
-#include <string.h>
+#include <climits>
+#include <cstring>
#include "goo/gmem.h"
#include "SplashMath.h"
#include "SplashGlyphBitmap.h"
diff --git a/splash/SplashFontEngine.cc b/splash/SplashFontEngine.cc
index 6156a8fc..40e24225 100644
--- a/splash/SplashFontEngine.cc
+++ b/splash/SplashFontEngine.cc
@@ -29,8 +29,8 @@
#include <config.h>
-#include <stdlib.h>
-#include <stdio.h>
+#include <cstdlib>
+#include <cstdio>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
diff --git a/splash/SplashFontFile.cc b/splash/SplashFontFile.cc
index fb1b316a..2e7474cd 100644
--- a/splash/SplashFontFile.cc
+++ b/splash/SplashFontFile.cc
@@ -22,7 +22,7 @@
#include <config.h>
-#include <stdio.h>
+#include <cstdio>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/splash/SplashMath.h b/splash/SplashMath.h
index bbbce367..70e6b7e4 100644
--- a/splash/SplashMath.h
+++ b/splash/SplashMath.h
@@ -24,7 +24,7 @@
#include "poppler-config.h"
-#include <math.h>
+#include <cmath>
#include "SplashTypes.h"
static inline SplashCoord splashAbs(SplashCoord x) {
diff --git a/splash/SplashPath.cc b/splash/SplashPath.cc
index 32bbd4f1..8ac28e04 100644
--- a/splash/SplashPath.cc
+++ b/splash/SplashPath.cc
@@ -22,7 +22,7 @@
#include <config.h>
-#include <string.h>
+#include <cstring>
#include "goo/gmem.h"
#include "goo/GooLikely.h"
#include "SplashErrorCodes.h"
diff --git a/splash/SplashScreen.cc b/splash/SplashScreen.cc
index 917e26f9..28a9917e 100644
--- a/splash/SplashScreen.cc
+++ b/splash/SplashScreen.cc
@@ -21,8 +21,8 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#include <algorithm>
#include "goo/gmem.h"
#include "goo/grandom.h"
diff --git a/splash/SplashScreen.h b/splash/SplashScreen.h
index da29a2f3..ef12cc0a 100644
--- a/splash/SplashScreen.h
+++ b/splash/SplashScreen.h
@@ -23,7 +23,7 @@
#include "SplashTypes.h"
-#include <stdlib.h>
+#include <cstdlib>
//------------------------------------------------------------------------
// SplashScreen
diff --git a/splash/SplashState.cc b/splash/SplashState.cc
index 9d4eb6fd..9bdb099b 100644
--- a/splash/SplashState.cc
+++ b/splash/SplashState.cc
@@ -21,7 +21,7 @@
#include <config.h>
-#include <string.h>
+#include <cstring>
#include "goo/gmem.h"
#include "SplashPattern.h"
#include "SplashScreen.h"
diff --git a/splash/SplashXPath.cc b/splash/SplashXPath.cc
index cfa065dc..248e3fbb 100644
--- a/splash/SplashXPath.cc
+++ b/splash/SplashXPath.cc
@@ -23,8 +23,8 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#include <algorithm>
#include "goo/gmem.h"
#include "goo/GooLikely.h"
diff --git a/splash/SplashXPathScanner.cc b/splash/SplashXPathScanner.cc
index 4ca90bc2..4b25792b 100644
--- a/splash/SplashXPathScanner.cc
+++ b/splash/SplashXPathScanner.cc
@@ -23,8 +23,8 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
+#include <cstdlib>
+#include <cstring>
#include <algorithm>
#include "goo/gmem.h"
#include "SplashMath.h"