diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-11-29 17:20:10 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-11-29 18:11:40 +0100 |
commit | 1c1d9a70013125f67518f398a2b5abf37ec43cdd (patch) | |
tree | e1ea16e1db7a4763828e6f230e99eda95cd34f77 /test | |
parent | 5713d0da012b734a28234455dcf817d5be20a98f (diff) |
Enable modernize-deprecated-headers
Diffstat (limited to 'test')
-rw-r--r-- | test/gtk-test.cc | 2 | ||||
-rw-r--r-- | test/perf-test-preview-win.cc | 2 | ||||
-rw-r--r-- | test/perf-test.cc | 16 |
3 files changed, 10 insertions, 10 deletions
diff --git a/test/gtk-test.cc b/test/gtk-test.cc index f103185d..288b0d3f 100644 --- a/test/gtk-test.cc +++ b/test/gtk-test.cc @@ -15,7 +15,7 @@ #include <poppler.h> #include <poppler-private.h> #include <gtk/gtk.h> -#include <math.h> +#include <cmath> static int requested_page = 0; static gboolean cairo_output = FALSE; diff --git a/test/perf-test-preview-win.cc b/test/perf-test-preview-win.cc index 93c73244..905ae289 100644 --- a/test/perf-test-preview-win.cc +++ b/test/perf-test-preview-win.cc @@ -4,7 +4,7 @@ /* This is a preview support for perf-test for Windows */ #include <windows.h> -#include <assert.h> +#include <cassert> #include "SplashBitmap.h" diff --git a/test/perf-test.cc b/test/perf-test.cc index 2b0d9c4e..0dd0304b 100644 --- a/test/perf-test.cc +++ b/test/perf-test.cc @@ -36,14 +36,14 @@ // Not enabled by default. //#define COPY_FILE 1 -#include <assert.h> -#include <stdio.h> -#include <stdarg.h> -#include <ctype.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <time.h> +#include <cassert> +#include <cstdio> +#include <cstdarg> +#include <cctype> +#include <cstdlib> +#include <cstring> +#include <cerrno> +#include <ctime> #ifdef HAVE_DIRENT_H #include <dirent.h> |