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;