summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-19 15:18:27 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-20 09:51:42 +0000
commit954a0083d9ce7065564c18c9788743eb0cf371f2 (patch)
tree3f77797181a9e89dafd9c5f00f6da3dc477d244b /src/extension
parentReplace typedef struct with struct in POD type declarations. (diff)
downloadinkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.tar.gz
inkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.zip
Replace typedef enum with enum in POD type declarations.
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/dbus/application-interface.h4
-rw-r--r--src/extension/extension.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/extension/dbus/application-interface.h b/src/extension/dbus/application-interface.h
index c108402cb..74c37cdd3 100644
--- a/src/extension/dbus/application-interface.h
+++ b/src/extension/dbus/application-interface.h
@@ -46,13 +46,13 @@ struct _ApplicationInterfaceClass {
};
-typedef enum
+enum InkscapeError
{
INKSCAPE_ERROR_SELECTION,
INKSCAPE_ERROR_OBJECT,
INKSCAPE_ERROR_VERB,
INKSCAPE_ERROR_OTHER
-} InkscapeError;
+};
diff --git a/src/extension/extension.h b/src/extension/extension.h
index 36e06939a..6b1a2aed8 100644
--- a/src/extension/extension.h
+++ b/src/extension/extension.h
@@ -91,11 +91,11 @@ class Implementation;
class Extension {
public:
/** An enumeration to identify if the Extension has been loaded or not. */
- typedef enum {
+ enum state_t {
STATE_LOADED, /**< The extension has been loaded successfully */
STATE_UNLOADED, /**< The extension has not been loaded */
STATE_DEACTIVATED /**< The extension is missing something which makes it unusable */
- } state_t;
+ };
private:
gchar *id; /**< The unique identifier for the Extension */