summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-17 19:40:31 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:01 +0000
commit7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4 (patch)
treeab4f11dc730c386ce76fcbb9e219b233504955e7 /src/widgets
parentRun clang-tidy’s modernize-use-equals-default pass. (diff)
downloadinkscape-7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4.tar.gz
inkscape-7fe91fdccab9e61c4dbc12c1c83d2f06e3f266f4.zip
Run clang-tidy’s modernize-deprecated-headers pass.
This renames most C <*.h> includes into C++ <c*> includes.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/desktop-widget.h2
-rw-r--r--src/widgets/ege-adjustment-action.cpp2
-rw-r--r--src/widgets/ege-output-action.cpp2
-rw-r--r--src/widgets/ege-paint-def.cpp6
-rw-r--r--src/widgets/ink-comboboxentry-action.cpp2
-rw-r--r--src/widgets/sp-attribute-widget.h2
-rw-r--r--src/widgets/sp-color-selector.cpp2
7 files changed, 9 insertions, 9 deletions
diff --git a/src/widgets/desktop-widget.h b/src/widgets/desktop-widget.h
index 4744752dc..60b100028 100644
--- a/src/widgets/desktop-widget.h
+++ b/src/widgets/desktop-widget.h
@@ -17,7 +17,7 @@
#include "ui/view/view-widget.h"
#include "ui/view/edit-widget-interface.h"
-#include <stddef.h>
+#include <cstddef>
#include <sigc++/connection.h>
#include <2geom/point.h>
diff --git a/src/widgets/ege-adjustment-action.cpp b/src/widgets/ege-adjustment-action.cpp
index ba120c310..5b71110b2 100644
--- a/src/widgets/ege-adjustment-action.cpp
+++ b/src/widgets/ege-adjustment-action.cpp
@@ -40,7 +40,7 @@
/* Note: this file should be kept compilable as both .cpp and .c */
#include <cmath>
-#include <string.h>
+#include <cstring>
#include <vector>
#include <algorithm>
diff --git a/src/widgets/ege-output-action.cpp b/src/widgets/ege-output-action.cpp
index 847a4f0a1..929e8e5ea 100644
--- a/src/widgets/ege-output-action.cpp
+++ b/src/widgets/ege-output-action.cpp
@@ -39,7 +39,7 @@
/* Note: this file should be kept compilable as both .cpp and .c */
-#include <string.h>
+#include <cstring>
#include <gtk/gtk.h>
#include <gtkmm/container.h>
diff --git a/src/widgets/ege-paint-def.cpp b/src/widgets/ege-paint-def.cpp
index aa51cf33a..8ed6bbfc5 100644
--- a/src/widgets/ege-paint-def.cpp
+++ b/src/widgets/ege-paint-def.cpp
@@ -38,12 +38,12 @@
#include <libintl.h>
-#include <stdint.h>
+#include <cstdint>
#include <string>
#include <iostream>
#include <sstream>
-#include <string.h>
-#include <stdio.h>
+#include <cstring>
+#include <cstdio>
#include <glibmm/i18n.h>
#include <glibmm/stringutils.h>
diff --git a/src/widgets/ink-comboboxentry-action.cpp b/src/widgets/ink-comboboxentry-action.cpp
index 5aace3f34..65f7d5831 100644
--- a/src/widgets/ink-comboboxentry-action.cpp
+++ b/src/widgets/ink-comboboxentry-action.cpp
@@ -24,7 +24,7 @@
*/
#include <iostream>
-#include <string.h>
+#include <cstring>
#include <glibmm/ustring.h>
#include <gtk/gtk.h>
diff --git a/src/widgets/sp-attribute-widget.h b/src/widgets/sp-attribute-widget.h
index de1b95e9c..7aad9bdc7 100644
--- a/src/widgets/sp-attribute-widget.h
+++ b/src/widgets/sp-attribute-widget.h
@@ -20,7 +20,7 @@
#endif
#include <gtkmm/widget.h>
-#include <stddef.h>
+#include <cstddef>
#include <sigc++/connection.h>
namespace Gtk {
diff --git a/src/widgets/sp-color-selector.cpp b/src/widgets/sp-color-selector.cpp
index 87051352f..f4931e5e9 100644
--- a/src/widgets/sp-color-selector.cpp
+++ b/src/widgets/sp-color-selector.cpp
@@ -7,7 +7,7 @@
#include <config.h>
#endif
-#include <math.h>
+#include <cmath>
#include <gtk/gtk.h>
#include <glibmm/i18n.h>
#include "sp-color-selector.h"