diff options
author | Savio Sena <savio.sena@acm.org> | 2014-09-23 22:23:59 -0300 |
---|---|---|
committer | Savio Sena <savio.sena@acm.org> | 2014-09-23 22:23:59 -0300 |
commit | bbb7e27b033933cb9b235c11ad9f17103923a3d1 (patch) | |
tree | 7da6d82692d22531c60ef879932bc5a21c268fa8 /src | |
parent | 99d7f53948c863e88946cec45d9c6a3bcc2b4976 (diff) |
Convert _cleanup.
Diffstat (limited to 'src')
27 files changed, 52 insertions, 80 deletions
diff --git a/src/bin/cxx/image_blend_border.cc b/src/bin/cxx/image_blend_border.cc index d083639..37b55d2 100644 --- a/src/bin/cxx/image_blend_border.cc +++ b/src/bin/cxx/image_blend_border.cc | |||
@@ -38,8 +38,6 @@ static void _setup() | |||
38 | /* cleanup */ | 38 | /* cleanup */ |
39 | static void _cleanup() | 39 | static void _cleanup() |
40 | { | 40 | { |
41 | for (evas::image o : images) | ||
42 | o.visibility_set(false); // XXX | ||
43 | images.clear(); | 41 | images.clear(); |
44 | } | 42 | } |
45 | 43 | ||
diff --git a/src/bin/cxx/image_blend_nearest_same_scaled.cc b/src/bin/cxx/image_blend_nearest_same_scaled.cc index 87aa054..d5f46ac 100644 --- a/src/bin/cxx/image_blend_nearest_same_scaled.cc +++ b/src/bin/cxx/image_blend_nearest_same_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_nearest_scaled.cc b/src/bin/cxx/image_blend_nearest_scaled.cc index 7add94a..1d9b520 100644 --- a/src/bin/cxx/image_blend_nearest_scaled.cc +++ b/src/bin/cxx/image_blend_nearest_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_nearest_solid_same_scaled.cc b/src/bin/cxx/image_blend_nearest_solid_same_scaled.cc index cbffaee..86724c5 100644 --- a/src/bin/cxx/image_blend_nearest_solid_same_scaled.cc +++ b/src/bin/cxx/image_blend_nearest_solid_same_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_nearest_solid_scaled.cc b/src/bin/cxx/image_blend_nearest_solid_scaled.cc index 90daf33..1f09c4c 100644 --- a/src/bin/cxx/image_blend_nearest_solid_scaled.cc +++ b/src/bin/cxx/image_blend_nearest_solid_scaled.cc | |||
@@ -36,10 +36,9 @@ static void _setup(void) | |||
36 | } | 36 | } |
37 | 37 | ||
38 | /* cleanup */ | 38 | /* cleanup */ |
39 | static void _cleanup(void) | 39 | static void _cleanup() |
40 | { | 40 | { |
41 | int i; | 41 | images.clear(); |
42 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
43 | } | 42 | } |
44 | 43 | ||
45 | /* loop - do things */ | 44 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude1.cc b/src/bin/cxx/image_blend_occlude1.cc index 2643e5f..ecd2d65 100644 --- a/src/bin/cxx/image_blend_occlude1.cc +++ b/src/bin/cxx/image_blend_occlude1.cc | |||
@@ -53,10 +53,9 @@ static void _setup(void) | |||
53 | } | 53 | } |
54 | 54 | ||
55 | /* cleanup */ | 55 | /* cleanup */ |
56 | static void _cleanup(void) | 56 | static void _cleanup() |
57 | { | 57 | { |
58 | int i; | 58 | images.clear(); |
59 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
60 | } | 59 | } |
61 | 60 | ||
62 | /* loop - do things */ | 61 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude1_few.cc b/src/bin/cxx/image_blend_occlude1_few.cc index b294269..9c04d0d 100644 --- a/src/bin/cxx/image_blend_occlude1_few.cc +++ b/src/bin/cxx/image_blend_occlude1_few.cc | |||
@@ -56,10 +56,9 @@ static void _setup(void) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | /* cleanup */ | 58 | /* cleanup */ |
59 | static void _cleanup(void) | 59 | static void _cleanup() |
60 | { | 60 | { |
61 | int i; | 61 | images.clear(); |
62 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
63 | } | 62 | } |
64 | 63 | ||
65 | /* loop - do things */ | 64 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude1_many.cc b/src/bin/cxx/image_blend_occlude1_many.cc index c601daf..b77fdc5 100644 --- a/src/bin/cxx/image_blend_occlude1_many.cc +++ b/src/bin/cxx/image_blend_occlude1_many.cc | |||
@@ -56,10 +56,9 @@ static void _setup(void) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | /* cleanup */ | 58 | /* cleanup */ |
59 | static void _cleanup(void) | 59 | static void _cleanup() |
60 | { | 60 | { |
61 | int i; | 61 | images.clear(); |
62 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
63 | } | 62 | } |
64 | 63 | ||
65 | /* loop - do things */ | 64 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude1_very_many.cc b/src/bin/cxx/image_blend_occlude1_very_many.cc index 4c349b7..c3143d0 100644 --- a/src/bin/cxx/image_blend_occlude1_very_many.cc +++ b/src/bin/cxx/image_blend_occlude1_very_many.cc | |||
@@ -58,10 +58,9 @@ static void _setup(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | /* cleanup */ | 60 | /* cleanup */ |
61 | static void _cleanup(void) | 61 | static void _cleanup() |
62 | { | 62 | { |
63 | int i; | 63 | images.clear(); |
64 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
65 | } | 64 | } |
66 | 65 | ||
67 | /* loop - do things */ | 66 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude2.cc b/src/bin/cxx/image_blend_occlude2.cc index afedeb8..eed4495 100644 --- a/src/bin/cxx/image_blend_occlude2.cc +++ b/src/bin/cxx/image_blend_occlude2.cc | |||
@@ -55,10 +55,9 @@ static void _setup(void) | |||
55 | } | 55 | } |
56 | 56 | ||
57 | /* cleanup */ | 57 | /* cleanup */ |
58 | static void _cleanup(void) | 58 | static void _cleanup() |
59 | { | 59 | { |
60 | int i; | 60 | images.clear(); |
61 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
62 | } | 61 | } |
63 | 62 | ||
64 | /* loop - do things */ | 63 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude2_few.cc b/src/bin/cxx/image_blend_occlude2_few.cc index a9e31d6..cc533a2 100644 --- a/src/bin/cxx/image_blend_occlude2_few.cc +++ b/src/bin/cxx/image_blend_occlude2_few.cc | |||
@@ -58,10 +58,9 @@ static void _setup(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | /* cleanup */ | 60 | /* cleanup */ |
61 | static void _cleanup(void) | 61 | static void _cleanup() |
62 | { | 62 | { |
63 | int i; | 63 | images.clear(); |
64 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
65 | } | 64 | } |
66 | 65 | ||
67 | /* loop - do things */ | 66 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude2_many.cc b/src/bin/cxx/image_blend_occlude2_many.cc index af02259..cced7f9 100644 --- a/src/bin/cxx/image_blend_occlude2_many.cc +++ b/src/bin/cxx/image_blend_occlude2_many.cc | |||
@@ -58,10 +58,9 @@ static void _setup(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | /* cleanup */ | 60 | /* cleanup */ |
61 | static void _cleanup(void) | 61 | static void _cleanup() |
62 | { | 62 | { |
63 | int i; | 63 | images.clear(); |
64 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
65 | } | 64 | } |
66 | 65 | ||
67 | /* loop - do things */ | 66 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude2_very_many.cc b/src/bin/cxx/image_blend_occlude2_very_many.cc index 3b545d9..a82143f 100644 --- a/src/bin/cxx/image_blend_occlude2_very_many.cc +++ b/src/bin/cxx/image_blend_occlude2_very_many.cc | |||
@@ -58,10 +58,9 @@ static void _setup(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | /* cleanup */ | 60 | /* cleanup */ |
61 | static void _cleanup(void) | 61 | static void _cleanup() |
62 | { | 62 | { |
63 | int i; | 63 | images.clear(); |
64 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
65 | } | 64 | } |
66 | 65 | ||
67 | /* loop - do things */ | 66 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude3.cc b/src/bin/cxx/image_blend_occlude3.cc index 5b45716..7f16300 100644 --- a/src/bin/cxx/image_blend_occlude3.cc +++ b/src/bin/cxx/image_blend_occlude3.cc | |||
@@ -55,10 +55,9 @@ static void _setup(void) | |||
55 | } | 55 | } |
56 | 56 | ||
57 | /* cleanup */ | 57 | /* cleanup */ |
58 | static void _cleanup(void) | 58 | static void _cleanup() |
59 | { | 59 | { |
60 | int i; | 60 | images.clear(); |
61 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
62 | } | 61 | } |
63 | 62 | ||
64 | /* loop - do things */ | 63 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude3_few.cc b/src/bin/cxx/image_blend_occlude3_few.cc index 183fa98..3cb8bdc 100644 --- a/src/bin/cxx/image_blend_occlude3_few.cc +++ b/src/bin/cxx/image_blend_occlude3_few.cc | |||
@@ -58,10 +58,9 @@ static void _setup(void) | |||
58 | } | 58 | } |
59 | 59 | ||
60 | /* cleanup */ | 60 | /* cleanup */ |
61 | static void _cleanup(void) | 61 | static void _cleanup() |
62 | { | 62 | { |
63 | int i; | 63 | images.clear(); |
64 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
65 | } | 64 | } |
66 | 65 | ||
67 | /* loop - do things */ | 66 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude3_many.cc b/src/bin/cxx/image_blend_occlude3_many.cc index da019d0..576a5d6 100644 --- a/src/bin/cxx/image_blend_occlude3_many.cc +++ b/src/bin/cxx/image_blend_occlude3_many.cc | |||
@@ -56,10 +56,9 @@ static void _setup(void) | |||
56 | } | 56 | } |
57 | 57 | ||
58 | /* cleanup */ | 58 | /* cleanup */ |
59 | static void _cleanup(void) | 59 | static void _cleanup() |
60 | { | 60 | { |
61 | int i; | 61 | images.clear(); |
62 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
63 | } | 62 | } |
64 | 63 | ||
65 | /* loop - do things */ | 64 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_occlude3_very_many.cc b/src/bin/cxx/image_blend_occlude3_very_many.cc index f535a3b..cbaa909 100644 --- a/src/bin/cxx/image_blend_occlude3_very_many.cc +++ b/src/bin/cxx/image_blend_occlude3_very_many.cc | |||
@@ -57,10 +57,9 @@ static void _setup(void) | |||
57 | } | 57 | } |
58 | 58 | ||
59 | /* cleanup */ | 59 | /* cleanup */ |
60 | static void _cleanup(void) | 60 | static void _cleanup() |
61 | { | 61 | { |
62 | int i; | 62 | images.clear(); |
63 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
64 | } | 63 | } |
65 | 64 | ||
66 | /* loop - do things */ | 65 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_smooth_same_scaled.cc b/src/bin/cxx/image_blend_smooth_same_scaled.cc index 2d0f6f6..b490734 100644 --- a/src/bin/cxx/image_blend_smooth_same_scaled.cc +++ b/src/bin/cxx/image_blend_smooth_same_scaled.cc | |||
@@ -39,10 +39,9 @@ static void _setup(void) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | /* cleanup */ | 41 | /* cleanup */ |
42 | static void _cleanup(void) | 42 | static void _cleanup() |
43 | { | 43 | { |
44 | int i; | 44 | images.clear(); |
45 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
46 | } | 45 | } |
47 | 46 | ||
48 | /* loop - do things */ | 47 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_smooth_scaled.cc b/src/bin/cxx/image_blend_smooth_scaled.cc index e32fa5b..0115896 100644 --- a/src/bin/cxx/image_blend_smooth_scaled.cc +++ b/src/bin/cxx/image_blend_smooth_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_smooth_solid_same_scaled.cc b/src/bin/cxx/image_blend_smooth_solid_same_scaled.cc index d1eb3a0..6f3ab6b 100644 --- a/src/bin/cxx/image_blend_smooth_solid_same_scaled.cc +++ b/src/bin/cxx/image_blend_smooth_solid_same_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_smooth_solid_scaled.cc b/src/bin/cxx/image_blend_smooth_solid_scaled.cc index fdffc39..21f0536 100644 --- a/src/bin/cxx/image_blend_smooth_solid_scaled.cc +++ b/src/bin/cxx/image_blend_smooth_solid_scaled.cc | |||
@@ -38,10 +38,9 @@ static void _setup(void) | |||
38 | } | 38 | } |
39 | 39 | ||
40 | /* cleanup */ | 40 | /* cleanup */ |
41 | static void _cleanup(void) | 41 | static void _cleanup() |
42 | { | 42 | { |
43 | int i; | 43 | images.clear(); |
44 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
45 | } | 44 | } |
46 | 45 | ||
47 | /* loop - do things */ | 46 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_solid_middle_border.cc b/src/bin/cxx/image_blend_solid_middle_border.cc index bb668ae..643d35d 100644 --- a/src/bin/cxx/image_blend_solid_middle_border.cc +++ b/src/bin/cxx/image_blend_solid_middle_border.cc | |||
@@ -39,10 +39,9 @@ static void _setup(void) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | /* cleanup */ | 41 | /* cleanup */ |
42 | static void _cleanup(void) | 42 | static void _cleanup() |
43 | { | 43 | { |
44 | int i; | 44 | images.clear(); |
45 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
46 | } | 45 | } |
47 | 46 | ||
48 | /* loop - do things */ | 47 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_solid_middle_unscaled.cc b/src/bin/cxx/image_blend_solid_middle_unscaled.cc index 56e54cf..6f61ec6 100644 --- a/src/bin/cxx/image_blend_solid_middle_unscaled.cc +++ b/src/bin/cxx/image_blend_solid_middle_unscaled.cc | |||
@@ -40,10 +40,9 @@ static void _setup(void) | |||
40 | } | 40 | } |
41 | 41 | ||
42 | /* cleanup */ | 42 | /* cleanup */ |
43 | static void _cleanup(void) | 43 | static void _cleanup() |
44 | { | 44 | { |
45 | int i; | 45 | images.clear(); |
46 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
47 | } | 46 | } |
48 | 47 | ||
49 | /* loop - do things */ | 48 | /* loop - do things */ |
diff --git a/src/bin/cxx/image_blend_unscaled.cc b/src/bin/cxx/image_blend_unscaled.cc index 0cd86ab..ced7ffd 100644 --- a/src/bin/cxx/image_blend_unscaled.cc +++ b/src/bin/cxx/image_blend_unscaled.cc | |||
@@ -39,10 +39,9 @@ static void _setup(void) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | /* cleanup */ | 41 | /* cleanup */ |
42 | static void _cleanup(void) | 42 | static void _cleanup() |
43 | { | 43 | { |
44 | int i; | 44 | images.clear(); |
45 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
46 | } | 45 | } |
47 | 46 | ||
48 | /* loop - do things */ | 47 | /* loop - do things */ |
diff --git a/src/bin/cxx/line_blend.cc b/src/bin/cxx/line_blend.cc index 1f6d3c9..0ca72d0 100644 --- a/src/bin/cxx/line_blend.cc +++ b/src/bin/cxx/line_blend.cc | |||
@@ -50,10 +50,9 @@ static void _setup(void) | |||
50 | } | 50 | } |
51 | 51 | ||
52 | /* cleanup */ | 52 | /* cleanup */ |
53 | static void _cleanup(void) | 53 | static void _cleanup() |
54 | { | 54 | { |
55 | int i; | 55 | images.clear(); |
56 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
57 | } | 56 | } |
58 | 57 | ||
59 | #define PI (double) 3.141592654 | 58 | #define PI (double) 3.141592654 |
diff --git a/src/bin/cxx/proxy_image.cc b/src/bin/cxx/proxy_image.cc index 4f63aa8..a349220 100644 --- a/src/bin/cxx/proxy_image.cc +++ b/src/bin/cxx/proxy_image.cc | |||
@@ -49,10 +49,9 @@ static void _setup(void) | |||
49 | } | 49 | } |
50 | 50 | ||
51 | /* cleanup */ | 51 | /* cleanup */ |
52 | static void _cleanup(void) | 52 | static void _cleanup() |
53 | { | 53 | { |
54 | int i; | 54 | images.clear(); |
55 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
56 | } | 55 | } |
57 | 56 | ||
58 | /* loop - do things */ | 57 | /* loop - do things */ |
diff --git a/src/bin/cxx/proxy_image_offscreen.cc b/src/bin/cxx/proxy_image_offscreen.cc index 8fc0964..68fe68a 100644 --- a/src/bin/cxx/proxy_image_offscreen.cc +++ b/src/bin/cxx/proxy_image_offscreen.cc | |||
@@ -46,10 +46,9 @@ static void _setup(void) | |||
46 | } | 46 | } |
47 | 47 | ||
48 | /* cleanup */ | 48 | /* cleanup */ |
49 | static void _cleanup(void) | 49 | static void _cleanup() |
50 | { | 50 | { |
51 | int i; | 51 | images.clear(); |
52 | for (i = 0; i < OBNUM; i++) eo_del(images[i]); | ||
53 | } | 52 | } |
54 | 53 | ||
55 | /* loop - do things */ | 54 | /* loop - do things */ |