aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-01 10:43:59 +1100
committerNeil <nyamatongwe@gmail.com>2017-04-01 10:43:59 +1100
commit0c9d87b081f9dd3856194f71f1643c99994d0b95 (patch)
tree3e3ebcc72d771c308471efac87144df173fd60a6 /gtk
parent9a3399828738c816bd40d2e0e87b36894a0e67e7 (diff)
downloadscintilla-mirror-0c9d87b081f9dd3856194f71f1643c99994d0b95.tar.gz
Standardize on C++ headers, remove headers that aren't needed and add <cstddef>
where it may be needed in the future.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/PlatGTK.cxx10
-rw-r--r--gtk/ScintillaGTK.cxx15
-rw-r--r--gtk/ScintillaGTKAccessible.cxx5
3 files changed, 16 insertions, 14 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 6db080db5..9ad49c9b8 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -3,11 +3,11 @@
// Copyright 1998-2004 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
-#include <stddef.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <math.h>
+#include <cstddef>
+#include <cstdlib>
+#include <cstring>
+#include <cstdio>
+#include <cmath>
#include <string>
#include <vector>
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 7b175d56b..6dfd33c95 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -3,13 +3,14 @@
// Copyright 1998-2004 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <time.h>
-#include <math.h>
-#include <assert.h>
-#include <ctype.h>
+#include <cstddef>
+#include <cstdlib>
+#include <cassert>
+#include <cstring>
+#include <cctype>
+#include <cstdio>
+#include <ctime>
+#include <cmath>
#include <stdexcept>
#include <new>
diff --git a/gtk/ScintillaGTKAccessible.cxx b/gtk/ScintillaGTKAccessible.cxx
index 3b54ff1a8..aede7dd4e 100644
--- a/gtk/ScintillaGTKAccessible.cxx
+++ b/gtk/ScintillaGTKAccessible.cxx
@@ -51,8 +51,9 @@
// FIXME: optimize character/byte offset conversion (with a cache?)
-#include <stdlib.h>
-#include <string.h>
+#include <cstddef>
+#include <cstdlib>
+#include <cstring>
#include <stdexcept>
#include <new>