[dia] [warningectomy] passing argument from incompatible pointer type
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] passing argument from incompatible pointer type
- Date: Tue, 3 Aug 2010 11:27:21 +0000 (UTC)
commit 6e4d56ae86a21dba49ff05bce72b69ce1ac2a2f2
Author: Hans Breuer <hans breuer org>
Date: Mon Aug 2 14:10:13 2010 +0200
[warningectomy] passing argument from incompatible pointer type
undo.c:1072: warning: passing argument 1 of 'data_emit' from
incompatible pointer type
../lib/diagramdata.h:163: note: expected 'struct DiagramData *' but
argument is of type 'struct Diagram *'
undo.c:1075: warning: passing argument 1 of 'data_emit' from
incompatible pointer type
../lib/diagramdata.h:163: note: expected 'struct DiagramData *' but
argument is of type 'struct Diagram *'
app/undo.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/undo.c b/app/undo.c
index 4b30667..2ec8a13 100644
--- a/app/undo.c
+++ b/app/undo.c
@@ -1069,10 +1069,10 @@ ungroup_objects_revert(struct UngroupObjectsChange *change, Diagram *dia)
list = g_list_next(list);
}
- data_emit (dia, change->layer, change->group, "object_add");
+ data_emit (DIA_DIAGRAM_DATA(dia), change->layer, change->group, "object_add");
list = change->obj_list;
while (list) {
- data_emit (dia, change->layer, list->data, "object_remove");
+ data_emit (DIA_DIAGRAM_DATA(dia), change->layer, list->data, "object_remove");
list = g_list_next(list);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]