summaryrefslogtreecommitdiffstats
path: root/src/live_effects
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/live_effects
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/live_effects')
-rw-r--r--src/live_effects/spiro.cpp4
-rw-r--r--src/live_effects/spiro.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/spiro.cpp b/src/live_effects/spiro.cpp
index c0e314a69..008e2ad6a 100644
--- a/src/live_effects/spiro.cpp
+++ b/src/live_effects/spiro.cpp
@@ -66,10 +66,10 @@ struct spiro_seg_s {
double l;
};
-typedef struct {
+struct bandmat {
double a[11]; /* band-diagonal matrix */
double al[5]; /* lower part of band-diagonal decomposition */
-} bandmat;
+};
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
diff --git a/src/live_effects/spiro.h b/src/live_effects/spiro.h
index 066b44ca8..3afa06941 100644
--- a/src/live_effects/spiro.h
+++ b/src/live_effects/spiro.h
@@ -31,11 +31,11 @@ class SPCurve;
namespace Spiro {
-typedef struct {
+struct spiro_cp {
double x;
double y;
char ty;
-} spiro_cp;
+};
void spiro_run(const spiro_cp *src, int src_len, SPCurve &curve);