[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Thu Nov 16 23:34:54 UTC 2006


SVN commit 605504 by okellogg:

findObjectInList(): Pass inList by reference.

 M  +1 -1      model_utils.cpp  
 M  +1 -1      model_utils.h  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/model_utils.cpp #605503:605504
@@ -56,7 +56,7 @@
     }
 }
 
-UMLObject * findObjectInList(Uml::IDType id, UMLObjectList inList) {
+UMLObject * findObjectInList(Uml::IDType id, const UMLObjectList& inList) {
     for (UMLObjectListIt oit(inList); oit.current(); ++oit) {
         UMLObject *obj = oit.current();
         if (obj->getID() == id)
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/model_utils.h #605503:605504
@@ -49,7 +49,7 @@
  * @return      Pointer to the UMLObject that matches the ID
  *              (NULL if none matches.)
  */
-UMLObject * findObjectInList(Uml::IDType id, UMLObjectList inList);
+UMLObject * findObjectInList(Uml::IDType id, const UMLObjectList& inList);
 
 /**
  * Find the UML object of the given type and name in the passed-in list.




More information about the umbrello-devel mailing list