summaryrefslogtreecommitdiff
path: root/fofi
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 /fofi
parent5713d0da012b734a28234455dcf817d5be20a98f (diff)
Enable modernize-deprecated-headers
Diffstat (limited to 'fofi')
-rw-r--r--fofi/FoFiBase.cc4
-rw-r--r--fofi/FoFiEncodings.cc2
-rw-r--r--fofi/FoFiIdentifier.cc6
-rw-r--r--fofi/FoFiTrueType.cc6
-rw-r--r--fofi/FoFiTrueType.h2
-rw-r--r--fofi/FoFiType1.cc6
-rw-r--r--fofi/FoFiType1C.cc8
7 files changed, 17 insertions, 17 deletions
diff --git a/fofi/FoFiBase.cc b/fofi/FoFiBase.cc
index 03759bce..c7f38229 100644
--- a/fofi/FoFiBase.cc
+++ b/fofi/FoFiBase.cc
@@ -26,8 +26,8 @@
#include <config.h>
-#include <stdio.h>
-#include <limits.h>
+#include <cstdio>
+#include <climits>
#include "goo/gfile.h"
#include "goo/gmem.h"
#include "poppler/Error.h"
diff --git a/fofi/FoFiEncodings.cc b/fofi/FoFiEncodings.cc
index f16f2f43..ddf2b873 100644
--- a/fofi/FoFiEncodings.cc
+++ b/fofi/FoFiEncodings.cc
@@ -23,7 +23,7 @@
#include <config.h>
-#include <stdlib.h>
+#include <cstdlib>
#include "FoFiEncodings.h"
//------------------------------------------------------------------------
diff --git a/fofi/FoFiIdentifier.cc b/fofi/FoFiIdentifier.cc
index 36863226..4f5e8ce7 100644
--- a/fofi/FoFiIdentifier.cc
+++ b/fofi/FoFiIdentifier.cc
@@ -23,9 +23,9 @@
//
//========================================================================
-#include <stdio.h>
-#include <string.h>
-#include <limits.h>
+#include <cstdio>
+#include <cstring>
+#include <climits>
#include "goo/gfile.h"
#include "goo/GooCheckedOps.h"
#include "FoFiIdentifier.h"
diff --git a/fofi/FoFiTrueType.cc b/fofi/FoFiTrueType.cc
index 6a6f689f..24624352 100644
--- a/fofi/FoFiTrueType.cc
+++ b/fofi/FoFiTrueType.cc
@@ -32,9 +32,9 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
-#include <limits.h>
+#include <cstdlib>
+#include <cstring>
+#include <climits>
#include <algorithm>
#include "goo/gmem.h"
#include "goo/GooLikely.h"
diff --git a/fofi/FoFiTrueType.h b/fofi/FoFiTrueType.h
index bba7bdfa..c14a831b 100644
--- a/fofi/FoFiTrueType.h
+++ b/fofi/FoFiTrueType.h
@@ -28,7 +28,7 @@
#ifndef FOFITRUETYPE_H
#define FOFITRUETYPE_H
-#include "stddef.h"
+#include <cstddef>
#include <unordered_map>
#include <string>
#include "FoFiBase.h"
diff --git a/fofi/FoFiType1.cc b/fofi/FoFiType1.cc
index f9ac55bd..9974753e 100644
--- a/fofi/FoFiType1.cc
+++ b/fofi/FoFiType1.cc
@@ -27,9 +27,9 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
-#include <limits.h>
+#include <cstdlib>
+#include <cstring>
+#include <climits>
#include "goo/glibc.h"
#include "goo/gmem.h"
#include "goo/GooLikely.h"
diff --git a/fofi/FoFiType1C.cc b/fofi/FoFiType1C.cc
index cdcef18a..7a4ed86f 100644
--- a/fofi/FoFiType1C.cc
+++ b/fofi/FoFiType1C.cc
@@ -26,9 +26,9 @@
#include <config.h>
-#include <stdlib.h>
-#include <string.h>
-#include <math.h>
+#include <cstdlib>
+#include <cstring>
+#include <cmath>
#include "goo/gmem.h"
#include "goo/gstrtod.h"
#include "goo/GooLikely.h"
@@ -2673,7 +2673,7 @@ int FoFiType1C::getDeltaIntArray(int *arr, int maxLen) const {
x = 0;
for (i = 0; i < n; ++i) {
int y;
- if (unlikely(isinf(ops[i].num))) {
+ if (unlikely(std::isinf(ops[i].num))) {
return i;
}
if (checkedAdd(x, (int)ops[i].num, &y)) {