Commit 7be65c2d authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

removed redundant casts.

2005-05-06  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-merge.c: removed redundant casts.
parent b4f94205
2005-05-06 Sven Neumann <sven@gimp.org>
* app/core/gimpimage-merge.c: removed redundant casts.
2005-05-06 Michael Natterer <mitch@gimp.org> 2005-05-06 Michael Natterer <mitch@gimp.org>
* app/actions/gradient-editor-commands.h: added enum for the * app/actions/gradient-editor-commands.h: added enum for the
......
...@@ -242,7 +242,7 @@ gimp_image_merge_layers (GimpImage *gimage, ...@@ -242,7 +242,7 @@ gimp_image_merge_layers (GimpImage *gimage,
count = 0; count = 0;
while (merge_list) while (merge_list)
{ {
layer = (GimpLayer *) merge_list->data; layer = merge_list->data;
gimp_item_offsets (GIMP_ITEM (layer), &off_x, &off_y); gimp_item_offsets (GIMP_ITEM (layer), &off_x, &off_y);
...@@ -383,7 +383,7 @@ gimp_image_merge_layers (GimpImage *gimage, ...@@ -383,7 +383,7 @@ gimp_image_merge_layers (GimpImage *gimage,
/* Find the index in the layer list of the bottom layer--we need this /* Find the index in the layer list of the bottom layer--we need this
* in order to add the final, merged layer to the layer list correctly * in order to add the final, merged layer to the layer list correctly
*/ */
layer = (GimpLayer *) reverse_list->data; layer = reverse_list->data;
position = position =
gimp_container_num_children (gimage->layers) - gimp_container_num_children (gimage->layers) -
gimp_container_get_child_index (gimage->layers, GIMP_OBJECT (layer)); gimp_container_get_child_index (gimage->layers, GIMP_OBJECT (layer));
...@@ -403,7 +403,7 @@ gimp_image_merge_layers (GimpImage *gimage, ...@@ -403,7 +403,7 @@ gimp_image_merge_layers (GimpImage *gimage,
{ {
GimpLayerModeEffects mode; GimpLayerModeEffects mode;
layer = (GimpLayer *) reverse_list->data; layer = reverse_list->data;
/* determine what sort of operation is being attempted and /* determine what sort of operation is being attempted and
* if it's actually legal... * if it's actually legal...
...@@ -465,6 +465,7 @@ gimp_image_merge_layers (GimpImage *gimage, ...@@ -465,6 +465,7 @@ gimp_image_merge_layers (GimpImage *gimage,
operation); operation);
gimp_image_remove_layer (gimage, layer); gimp_image_remove_layer (gimage, layer);
reverse_list = g_slist_next (reverse_list); reverse_list = g_slist_next (reverse_list);
} }
...@@ -476,7 +477,7 @@ gimp_image_merge_layers (GimpImage *gimage, ...@@ -476,7 +477,7 @@ gimp_image_merge_layers (GimpImage *gimage,
list = GIMP_LIST (gimage->layers)->list; list = GIMP_LIST (gimage->layers)->list;
while (list) while (list)
{ {
layer = (GimpLayer *) list->data; layer = list->data;
list = g_list_next (list); list = g_list_next (list);
gimp_image_remove_layer (gimage, layer); gimp_image_remove_layer (gimage, layer);
...@@ -529,7 +530,7 @@ gimp_image_merge_visible_vectors (GimpImage *gimage) ...@@ -529,7 +530,7 @@ gimp_image_merge_visible_vectors (GimpImage *gimage)
list; list;
list = g_list_next (list)) list = g_list_next (list))
{ {
vectors = (GimpVectors *) list->data; vectors = list->data;
if (gimp_item_get_visible (GIMP_ITEM (vectors))) if (gimp_item_get_visible (GIMP_ITEM (vectors)))
merge_list = g_slist_append (merge_list, vectors); merge_list = g_slist_append (merge_list, vectors);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment