summaryrefslogtreecommitdiff
blob: da3e6da24ddcc70beab5ceebf68926a8da7f977c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
diff -U3 -r truevision-0.3.10/src/density.cc truevision-0.3.10-patched/src/density.cc
--- truevision-0.3.10/src/density.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/density.cc	2003-03-15 18:38:29.000000000 -0500
@@ -49,7 +49,7 @@
 //**************************************
 // Constructeur
 //**************************************
-PovTexDensity::PovTexDensity( app_objs *appref, void (*asuicidal_func)(gpointer, gpointer), gpointer amother, bool is_top=true ) : MaterialItem( app_ref )
+PovTexDensity::PovTexDensity( app_objs *appref, void (*asuicidal_func)(gpointer, gpointer), gpointer amother, bool is_top ) : MaterialItem( app_ref )
 {
 num = ++count;
 char text[25];
@@ -74,7 +74,7 @@
 warp = new TvWidget_warp_rb( N_("Warp"), "WARP", NULL, app_ref );
 }
 
-void PovTexDensity::set_params( void (*asuicidal_func)(gpointer, gpointer), gpointer amother, bool is_top=true )
+void PovTexDensity::set_params( void (*asuicidal_func)(gpointer, gpointer), gpointer amother, bool is_top )
 {
 suicidal_func = asuicidal_func;
 mother = amother;
@@ -337,7 +337,7 @@
 if ( map_editor != NULL ) map_editor->flush();
 }
 
-void PovTexDensity::output_to_povray( ofstream & file, bool inmap = false )
+void PovTexDensity::output_to_povray( ofstream & file, bool inmap )
 {
 if ( !inmap ) file << "\n\t\t\tdensity {\n\t\t\t\t";
 
diff -U3 -r truevision-0.3.10/src/dlgutils.cc truevision-0.3.10-patched/src/dlgutils.cc
--- truevision-0.3.10/src/dlgutils.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/dlgutils.cc	2003-03-15 18:38:29.000000000 -0500
@@ -41,7 +41,7 @@
 }
 
 // Double box
-GtkWidget *dlg_double_box( GtkWidget *parent, GtkWidget* &vbox1, GtkWidget* &vbox2, bool packed = false )
+GtkWidget *dlg_double_box( GtkWidget *parent, GtkWidget* &vbox1, GtkWidget* &vbox2, bool packed )
 {
 GtkWidget *hbox = gtk_hbox_new( TRUE, 5 );
 if ( packed ) gtk_box_pack_start( GTK_BOX(parent), hbox, TRUE, TRUE, 1 );
diff -U3 -r truevision-0.3.10/src/mapedit.cc truevision-0.3.10-patched/src/mapedit.cc
--- truevision-0.3.10/src/mapedit.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/mapedit.cc	2003-03-15 18:38:29.000000000 -0500
@@ -28,7 +28,7 @@
 //********************************************
 // MAP ITEM
 //********************************************
-MapItem::MapItem( char *nom, float val = -1 )
+MapItem::MapItem( char *nom, float val)
 {
 name = nom;
 value = val;
diff -U3 -r truevision-0.3.10/src/material.cc truevision-0.3.10-patched/src/material.cc
--- truevision-0.3.10/src/material.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/material.cc	2003-03-15 18:38:29.000000000 -0500
@@ -66,7 +66,7 @@
 //**************************************
 // Add to list
 //**************************************
-void Material::add_to_list( GtkWidget *list, int position = -1 )
+void Material::add_to_list( GtkWidget *list, int position)
 {
 clist = GTK_CLIST( list );
 gchar *titre[] = { name->value() };
@@ -182,7 +182,7 @@
 item_type = ref.item_type;
 }
 
-void MaterialItem::add_to_tree( GtkCTree *tree, GtkCTreeNode *node , GtkCTreeNode *sibling = NULL )
+void MaterialItem::add_to_tree( GtkCTree *tree, GtkCTreeNode *node , GtkCTreeNode *sibling)
 {
 ctree = tree;
 parent_node = node;
diff -U3 -r truevision-0.3.10/src/matpov.cc truevision-0.3.10-patched/src/matpov.cc
--- truevision-0.3.10/src/matpov.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/matpov.cc	2003-03-15 18:38:29.000000000 -0500
@@ -600,7 +600,7 @@
 }
 
 
-void PovTexture::output_to_povray( ofstream & file, bool inmap = false )
+void PovTexture::output_to_povray( ofstream & file, bool inmap )
 {
 //if ( !is_used() ) return;
 
diff -U3 -r truevision-0.3.10/src/texnormal.cc truevision-0.3.10-patched/src/texnormal.cc
--- truevision-0.3.10/src/texnormal.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/texnormal.cc	2003-03-15 18:38:29.000000000 -0500
@@ -44,7 +44,7 @@
 //**************************************
 // Constructeurs & Destructeurs
 //**************************************
-PovTexNormal::PovTexNormal( app_objs *appref, bool mother = true ) : MaterialItem( app_ref )
+PovTexNormal::PovTexNormal( app_objs *appref, bool mother ) : MaterialItem( app_ref )
 {
 set_name( _("Normal") );
 item_type = TV_MITEM_NORMAL;
diff -U3 -r truevision-0.3.10/src/texpigment.cc truevision-0.3.10-patched/src/texpigment.cc
--- truevision-0.3.10/src/texpigment.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/texpigment.cc	2003-03-15 18:38:29.000000000 -0500
@@ -48,7 +48,7 @@
 //**************************************
 // Constructeur
 //**************************************
-PovTexPigment::PovTexPigment( app_objs *appref, bool mother = true ) : MaterialItem( appref )
+PovTexPigment::PovTexPigment( app_objs *appref, bool mother ) : MaterialItem( appref )
 {
 set_name( _("Pigment") );
 item_type = TV_MITEM_PIGMENT;
@@ -373,7 +373,7 @@
 }
 
 
-void PovTexPigment::output_to_povray( ofstream & file, bool in_map=false )
+void PovTexPigment::output_to_povray( ofstream & file, bool in_map )
 {
 if ( !used->value() ) return;
 if ( !in_map ) file << "\n\t\tpigment {\n\t\t\t";
diff -U3 -r truevision-0.3.10/src/tvwidgets.cc truevision-0.3.10-patched/src/tvwidgets.cc
--- truevision-0.3.10/src/tvwidgets.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/tvwidgets.cc	2003-03-15 18:38:29.000000000 -0500
@@ -56,7 +56,7 @@
 in_update = false;
 }
 
-void TvWidget::pack_widget( GtkWidget *box, bool tt, GtkWidget *target=NULL )
+void TvWidget::pack_widget( GtkWidget *box, bool tt, GtkWidget *target )
 {
 if ( tt && tooltip != NULL ) 
 	{
diff -U3 -r truevision-0.3.10/src/tvwidgets2.cc truevision-0.3.10-patched/src/tvwidgets2.cc
--- truevision-0.3.10/src/tvwidgets2.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/tvwidgets2.cc	2003-03-15 18:38:29.000000000 -0500
@@ -887,7 +887,7 @@
 const char *bfiletype_ext[bfiletype_num] = { "df3" };
 const char *bfiletype_def[bfiletype_num] = { " df3 " };
 
-TvWidget_blendmap::TvWidget_blendmap(  const char *name, const char *sname, const char *tooltip, app_objs *appref, bool is_colmap = false )
+TvWidget_blendmap::TvWidget_blendmap(  const char *name, const char *sname, const char *tooltip, app_objs *appref, bool is_colmap )
  : TvWidget( name, sname, tooltip, appref )
 {
 option_box = NULL;
diff -U3 -r truevision-0.3.10/src/undo.cc truevision-0.3.10-patched/src/undo.cc
--- truevision-0.3.10/src/undo.cc	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/undo.cc	2003-03-15 18:38:29.000000000 -0500
@@ -181,7 +181,7 @@
 }
 
 // Undo layers creation / deletion / move		
-void UndoRedoManager::push( UndoAction act, ObjectLayer *lay, int sens = -1 )
+void UndoRedoManager::push( UndoAction act, ObjectLayer *lay, int sens )
 {
 UndoItem *item = new UndoItem( act, lay, sens );
 UndoList.push_back( item );
@@ -191,7 +191,7 @@
 }
 
 // Undo materials creation / deletion / move		
-void UndoRedoManager::push( UndoAction act, Material *mat, int position = -1 )
+void UndoRedoManager::push( UndoAction act, Material *mat, int position )
 {
 UndoItem *item = new UndoItem( act, mat, position );
 UndoList.push_back( item );
@@ -231,7 +231,7 @@
 // The main function used
 // in fact it is also used for redo ;-)
 //***************************************************
-void UndoRedoManager::undo( bool doredo = false )
+void UndoRedoManager::undo( bool doredo )
 {
 // Define source & destination lists
 // The determine if we act as undo or redo...
diff -U3 -r truevision-0.3.10/src/undo.h truevision-0.3.10-patched/src/undo.h
--- truevision-0.3.10/src/undo.h	2002-01-01 06:43:01.000000000 -0500
+++ truevision-0.3.10-patched/src/undo.h	2003-03-15 18:38:29.000000000 -0500
@@ -65,7 +65,7 @@
 // one for undo and the other for redo
 //**********************************************************
 class UndoItem {
-	friend UndoRedoManager;
+	friend struct UndoRedoManager;
 
 	private:
 		UndoAction action;