summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-19 15:11:19 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-20 09:51:42 +0000
commitaf7e9ecd1fdd9a3499da7fc2721c4e4a74d8542f (patch)
tree1cd0e24fa031a9231b800b0b41102a5d95e7082c /src/ui
parentReplace functions with methods in SPColor. (diff)
downloadinkscape-af7e9ecd1fdd9a3499da7fc2721c4e4a74d8542f.tar.gz
inkscape-af7e9ecd1fdd9a3499da7fc2721c4e4a74d8542f.zip
Replace typedef struct with struct in POD type declarations.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog-events.h4
-rw-r--r--src/ui/dialog/filedialogimpl-win32.cpp5
-rw-r--r--src/ui/widget/selected-style.cpp8
3 files changed, 9 insertions, 8 deletions
diff --git a/src/ui/dialog-events.h b/src/ui/dialog-events.h
index 547cfb95d..e00c0560b 100644
--- a/src/ui/dialog-events.h
+++ b/src/ui/dialog-events.h
@@ -30,10 +30,10 @@ class Entry;
class SPDesktop;
-typedef struct {
+struct win_data {
GtkWidget *win;
guint stop;
-} win_data;
+};
gboolean sp_dialog_event_handler ( GtkWindow *win,
diff --git a/src/ui/dialog/filedialogimpl-win32.cpp b/src/ui/dialog/filedialogimpl-win32.cpp
index 0effddfed..c57594551 100644
--- a/src/ui/dialog/filedialogimpl-win32.cpp
+++ b/src/ui/dialog/filedialogimpl-win32.cpp
@@ -1097,7 +1097,7 @@ bool FileOpenDialogImplWin32::set_image_preview()
// for the bbox rectangle.
#pragma pack( push )
#pragma pack( 2 )
-typedef struct
+struct APMHEADER
{
DWORD dwKey;
WORD hmf;
@@ -1105,7 +1105,8 @@ typedef struct
WORD wInch;
DWORD dwReserved;
WORD wCheckSum;
-} APMHEADER, *PAPMHEADER;
+};
+using PAPMHEADER = APMHEADER *;
#pragma pack( pop )
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index bc4a3558f..9a5d35f3b 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -92,15 +92,15 @@ namespace UI {
namespace Widget {
-typedef struct {
+struct DropTracker {
SelectedStyle* parent;
int item;
-} DropTracker;
+};
/* Drag and Drop */
-typedef enum {
+enum ui_drop_target_info {
APP_X_COLOR
-} ui_drop_target_info;
+};
//TODO: warning: deprecated conversion from string constant to ‘gchar*’
//