summaryrefslogtreecommitdiff
path: root/devel/uml/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-06-15 17:48:35 +0000
committerkristerw <kristerw@pkgsrc.org>2004-06-15 17:48:35 +0000
commit95b6e0e52c6cb1f7fca51f51df172ef261a83c35 (patch)
tree5da8e81ea97f2c3fbf9674014a261abac32e3451 /devel/uml/patches
parentbaa897ed3540f123cc04ad962fb1819f9a17f149 (diff)
downloadpkgsrc-95b6e0e52c6cb1f7fca51f51df172ef261a83c35.tar.gz
Fix some C++ issues that gcc 3.3 complained on.
Diffstat (limited to 'devel/uml/patches')
-rw-r--r--devel/uml/patches/patch-aa29
-rw-r--r--devel/uml/patches/patch-ab11
-rw-r--r--devel/uml/patches/patch-ac26
-rw-r--r--devel/uml/patches/patch-ad11
-rw-r--r--devel/uml/patches/patch-ae20
-rw-r--r--devel/uml/patches/patch-af11
-rw-r--r--devel/uml/patches/patch-ag20
-rw-r--r--devel/uml/patches/patch-ah11
-rw-r--r--devel/uml/patches/patch-ai29
-rw-r--r--devel/uml/patches/patch-aj11
-rw-r--r--devel/uml/patches/patch-ak45
-rw-r--r--devel/uml/patches/patch-al38
-rw-r--r--devel/uml/patches/patch-am11
13 files changed, 273 insertions, 0 deletions
diff --git a/devel/uml/patches/patch-aa b/devel/uml/patches/patch-aa
new file mode 100644
index 00000000000..8392c4d27bd
--- /dev/null
+++ b/devel/uml/patches/patch-aa
@@ -0,0 +1,29 @@
+--- uml/association.cpp.orig 2004-06-15 19:35:27.000000000 +0200
++++ uml/association.cpp 2004-06-15 19:36:19.000000000 +0200
+@@ -203,7 +203,7 @@
+ wB = view -> findWidget(bID);
+ if(!wA || !wB)
+ {
+- cerr<<"Can't make association"<<endl;
++ std::cerr<<"Can't make association"<<std::endl;
+ return false;
+ }
+ if(assoc == 408)
+@@ -252,7 +252,7 @@
+ wB = view -> findWidget(bID);
+ if(!wA || !wB)
+ {
+- cerr<<"Can't make association"<<endl;
++ std::cerr<<"Can't make association"<<std::endl;
+ return false;
+ }
+
+@@ -302,7 +302,7 @@
+ wB = view -> findWidget(bID);
+ if(!wA || !wB)
+ {
+- cerr<<"Can't make association"<<endl;
++ std::cerr<<"Can't make association"<<std::endl;
+ return false;
+ }
+
diff --git a/devel/uml/patches/patch-ab b/devel/uml/patches/patch-ab
new file mode 100644
index 00000000000..84ed509678f
--- /dev/null
+++ b/devel/uml/patches/patch-ab
@@ -0,0 +1,11 @@
+--- uml/classattpage.cpp.orig 2004-06-15 19:34:42.000000000 +0200
++++ uml/classattpage.cpp 2004-06-15 19:35:19.000000000 +0200
+@@ -283,7 +283,7 @@
+ Attribute * a = (Attribute *)concept -> findChildObject(ATTRIBUTE, s);
+ if(!a && id != NEWATT)
+ {
+- cerr<<"can't find att from selection"<<endl;
++ std::cerr<<"can't find att from selection"<<std::endl;
+ return;
+ }
+ switch(id)
diff --git a/devel/uml/patches/patch-ac b/devel/uml/patches/patch-ac
new file mode 100644
index 00000000000..562b7137cd0
--- /dev/null
+++ b/devel/uml/patches/patch-ac
@@ -0,0 +1,26 @@
+--- uml/classopspage.cpp.orig 2004-06-15 19:33:30.000000000 +0200
++++ uml/classopspage.cpp 2004-06-15 19:34:27.000000000 +0200
+@@ -308,12 +308,12 @@
+ oldA = o -> findParm( parmsLB -> currentText());
+ if(!o)
+ {
+- cerr<<"can't find op from selection"<<endl;
++ std::cerr<<"can't find op from selection"<<std::endl;
+ return;
+ }
+ if(id == RENAME || id == PROPERTIES)
+ {
+- if(!oldA){cerr<<"THE impossible has occurred for:"<<parmsLB -> currentText()<<endl;
++ if(!oldA){std::cerr<<"THE impossible has occurred for:"<<parmsLB -> currentText()<<std::endl;
+ return;}//should never occur
+ ParmPropDlg d((QWidget *)doc, oldA);
+ result = d.exec();
+@@ -420,7 +420,7 @@
+ Operation * o = (Operation *)concept -> findChildObject(OPERATION, s);
+ if(!o && id != NEWOP)
+ {
+- cerr<<"can't find op from selection"<<endl;
++ std::cerr<<"can't find op from selection"<<std::endl;
+ return;
+ }
+ switch(id)
diff --git a/devel/uml/patches/patch-ad b/devel/uml/patches/patch-ad
new file mode 100644
index 00000000000..33c2b9c4b67
--- /dev/null
+++ b/devel/uml/patches/patch-ad
@@ -0,0 +1,11 @@
+--- uml/classpropdlg.cpp.orig 2004-06-15 19:32:55.000000000 +0200
++++ uml/classpropdlg.cpp 2004-06-15 19:33:20.000000000 +0200
+@@ -87,7 +87,7 @@
+ UMLObject * o = ((Concept*)object) -> findChildObject(id);
+ if(o)
+ doc -> signalChildUMLObjectUpdate(o);
+- else cerr<<"slot dlg: can't find child"<<endl;
++ else std::cerr<<"slot dlg: can't find child"<<std::endl;
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+ void ClassPropDlg::slotApply()
diff --git a/devel/uml/patches/patch-ae b/devel/uml/patches/patch-ae
new file mode 100644
index 00000000000..05fe9be81d5
--- /dev/null
+++ b/devel/uml/patches/patch-ae
@@ -0,0 +1,20 @@
+--- uml/concept.cpp.orig 2004-06-15 19:32:07.000000000 +0200
++++ uml/concept.cpp 2004-06-15 19:32:46.000000000 +0200
+@@ -30,7 +30,7 @@
+ {
+ if(!attsList.remove((Attribute *)a))
+ {
+- cerr<<"can't find att given in list"<<endl;
++ std::cerr<<"can't find att given in list"<<std::endl;
+ return -1;
+ }
+ return attsList.count();
+@@ -47,7 +47,7 @@
+ {
+ if(!opsList.remove((Operation *)o))
+ {
+- cerr<<"can't find opp given in list"<<endl;
++ std::cerr<<"can't find opp given in list"<<std::endl;
+ return -1;
+ }
+ return opsList.count();
diff --git a/devel/uml/patches/patch-af b/devel/uml/patches/patch-af
new file mode 100644
index 00000000000..da74232437b
--- /dev/null
+++ b/devel/uml/patches/patch-af
@@ -0,0 +1,11 @@
+--- uml/diagramprintpage.cpp.orig 2004-06-15 19:20:34.000000000 +0200
++++ uml/diagramprintpage.cpp 2004-06-15 19:21:13.000000000 +0200
+@@ -71,7 +71,7 @@
+ disconnect(typeCB, SIGNAL(activated(const QString&)), this, SLOT(slotActivated(const QString&)));
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+-void DiagramPrintPage::getOptions( QMap<QString,QString>& opts, bool incldef = false )
++void DiagramPrintPage::getOptions( QMap<QString,QString>& opts, bool incldef )
+ {
+ int listCount = selectLB -> count();
+ int count = 0;
diff --git a/devel/uml/patches/patch-ag b/devel/uml/patches/patch-ag
new file mode 100644
index 00000000000..71d1a498020
--- /dev/null
+++ b/devel/uml/patches/patch-ag
@@ -0,0 +1,20 @@
+--- uml/floatingtext.cpp.orig 2004-06-15 19:31:02.000000000 +0200
++++ uml/floatingtext.cpp 2004-06-15 19:31:35.000000000 +0200
+@@ -19,7 +19,7 @@
+ init();
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+-FloatingText::FloatingText(QWidget * parent, bool copying = false) : UMLWidget(parent, copying)
++FloatingText::FloatingText(QWidget * parent, bool copying) : UMLWidget(parent, copying)
+ {
+ text = "";
+ role = type = UNDEFINED;
+@@ -175,7 +175,7 @@
+ {
+ //here to delete assoc./message on collab diagram.
+ if(!assoc)
+- {cerr<<"Error in floating text:no assoc set."<<endl;return;}
++ {std::cerr<<"Error in floating text:no assoc set."<<std::endl;return;}
+ view -> getWidgetAssocContainer() -> removeAssoc(assoc);
+ return;
+ }
diff --git a/devel/uml/patches/patch-ah b/devel/uml/patches/patch-ah
new file mode 100644
index 00000000000..58908222161
--- /dev/null
+++ b/devel/uml/patches/patch-ah
@@ -0,0 +1,11 @@
+--- uml/messagewidget.cpp.orig 2004-06-15 19:30:28.000000000 +0200
++++ uml/messagewidget.cpp 2004-06-15 19:30:43.000000000 +0200
+@@ -201,7 +201,7 @@
+ connect(wB, SIGNAL(sigWidgetMoved(int)), this, SLOT(slotWidgetMoved(int)));
+ if(!wA || !wB)
+ {
+- cerr<<"Can't make message"<<endl;
++ std::cerr<<"Can't make message"<<std::endl;
+ status = false;
+ }
+
diff --git a/devel/uml/patches/patch-ai b/devel/uml/patches/patch-ai
new file mode 100644
index 00000000000..1b01417b5bf
--- /dev/null
+++ b/devel/uml/patches/patch-ai
@@ -0,0 +1,29 @@
+--- uml/mylistview.cpp.orig 2004-06-15 19:29:10.000000000 +0200
++++ uml/mylistview.cpp 2004-06-15 19:30:09.000000000 +0200
+@@ -264,7 +264,7 @@
+ }else if(pt == ACTOR || pt == USECASE)
+ {
+ item = ucv;
+- }else{ cerr<<"ERROR:listview:find"<<endl;return 0;}
++ }else{ std::cerr<<"ERROR:listview:find"<<std::endl;return 0;}
+ temp = (MyListViewItem *)item->firstChild();
+ while(temp)
+ {
+@@ -333,7 +333,7 @@
+ }
+ item =(MyListViewItem *)item -> nextSibling();
+ }//end while
+- cerr<<"Error findchild"<<endl;
++ std::cerr<<"Error findchild"<<std::endl;
+ return 0;
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+@@ -379,7 +379,7 @@
+ for( ; (temp = (MyListViewItem*)it.current()); ++it )
+ if(temp->getID() == id)
+ return temp;
+- cerr<<"Can't find list item by id"<<endl;
++ std::cerr<<"Can't find list item by id"<<std::endl;
+ return 0;
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/devel/uml/patches/patch-aj b/devel/uml/patches/patch-aj
new file mode 100644
index 00000000000..016ab60bda2
--- /dev/null
+++ b/devel/uml/patches/patch-aj
@@ -0,0 +1,11 @@
+--- uml/operation.cpp.orig 2004-06-15 19:28:32.000000000 +0200
++++ uml/operation.cpp 2004-06-15 19:28:43.000000000 +0200
+@@ -40,7 +40,7 @@
+ {
+ if(obj == a)
+ if(!list.remove(obj))
+- cerr<<"Error removing parm"<<endl;
++ std::cerr<<"Error removing parm"<<std::endl;
+ }
+ }
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
diff --git a/devel/uml/patches/patch-ak b/devel/uml/patches/patch-ak
new file mode 100644
index 00000000000..f6dfa3306e4
--- /dev/null
+++ b/devel/uml/patches/patch-ak
@@ -0,0 +1,45 @@
+--- uml/umldoc.cpp.orig 2004-06-15 19:25:09.000000000 +0200
++++ uml/umldoc.cpp 2004-06-15 19:27:14.000000000 +0200
+@@ -352,7 +352,7 @@
+ }
+ else
+ {
+- cerr<<"CreateUMLObject(int) error"<<endl;
++ std::cerr<<"CreateUMLObject(int) error"<<std::endl;
+ return;
+ }
+ objectList.append(o);
+@@ -398,7 +398,7 @@
+ }
+ else
+ {
+- cerr<<"ERROR _CREATEUMLOBJECT"<<endl;
++ std::cerr<<"ERROR _CREATEUMLOBJECT"<<std::endl;
+ return;
+ }
+ loop = false;
+@@ -514,7 +514,7 @@
+ bool loop = true;
+ UMLObject *p = (UMLObject *)o->parent();
+ if(!p){
+- cerr<<"Can't create object, no parent found"<<endl;
++ std::cerr<<"Can't create object, no parent found"<<std::endl;
+ return;}
+ QString oldName= o->name();
+ while(loop)
+@@ -844,13 +844,13 @@
+ {
+ if(!clipboard)
+ {
+- cerr <<"clipboard deleted and trying to paste. WHAT!!!"<<endl;
++ std::cerr <<"clipboard deleted and trying to paste. WHAT!!!"<<std::endl;
+ return;
+ }
+ currentView -> pasteSelection(clipboard);
+ }
+
+-void UMLDoc::setModified(bool _m=true)
++void UMLDoc::setModified(bool _m)
+ {
+ modified = _m;
+ ((UMLApp *) parent()) -> setModified(_m);
diff --git a/devel/uml/patches/patch-al b/devel/uml/patches/patch-al
new file mode 100644
index 00000000000..b29ff2250dc
--- /dev/null
+++ b/devel/uml/patches/patch-al
@@ -0,0 +1,38 @@
+--- uml/umlview.cpp.orig 2004-06-15 19:23:17.000000000 +0200
++++ uml/umlview.cpp 2004-06-15 19:24:59.000000000 +0200
+@@ -512,7 +512,7 @@
+ ObjectWidget * ow = new ObjectWidget(viewport(), o, ++localID);
+ temp = (UMLWidget *)ow;
+ }
+- }else cerr <<"ERROR: trying to create an invalid widget"<<endl;
++ }else std::cerr <<"ERROR: trying to create an invalid widget"<<std::endl;
+ connect(getDocument(), SIGNAL(sigWidgetUpdated(UMLObject *)), temp, SLOT(slotChangeWidget(UMLObject *)));
+ connect(this, SIGNAL(sigColorChanged(int)), temp, SLOT(slotColorChanged(int)));
+ int y=pos.y();
+@@ -577,7 +577,7 @@
+ if(status)
+ if( !(temp = getDocument()->findUMLObject(id)) )
+ {
+- cerr<<"object not found"<<endl;
++ std::cerr<<"object not found"<<std::endl;
+ status = false;
+ }
+ //make sure dragging item onto correct diagram
+@@ -630,7 +630,7 @@
+ if(status)
+ if(!(o = getDocument()->findUMLObject(id)))
+ {
+- cerr<<"object not found"<<endl;
++ std::cerr<<"object not found"<<std::endl;
+ status = false;
+ }
+ if(status)
+@@ -913,7 +913,7 @@
+ }//end object
+ else
+ {
+- cerr<<"ERROR LOADING VIEW"<<endl;
++ std::cerr<<"ERROR LOADING VIEW"<<std::endl;
+ return false;
+ }
+ status = o -> serialize(s, archive, fileVersion);
diff --git a/devel/uml/patches/patch-am b/devel/uml/patches/patch-am
new file mode 100644
index 00000000000..449c87d2522
--- /dev/null
+++ b/devel/uml/patches/patch-am
@@ -0,0 +1,11 @@
+--- uml/umlwidget.cpp.orig 2004-06-15 19:22:01.000000000 +0200
++++ uml/umlwidget.cpp 2004-06-15 19:22:41.000000000 +0200
+@@ -376,7 +376,7 @@
+ object = view -> getDocument() -> findUMLObject(id);
+ if(!object && type >= ACTOR && type <= OBJECT)
+ {
+- cerr<<"CAN'T FIND OBJECT TO USE IN VIEW id : "<<id<<endl;
++ std::cerr<<"CAN'T FIND OBJECT TO USE IN VIEW id : "<<id<<std::endl;
+ status = false;
+ }
+ else if(object)