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

Oliver Kellogg okellogg at users.sourceforge.net
Wed Nov 22 05:51:53 UTC 2006


SVN commit 606867 by okellogg:

findUMLObject(): Pass inList as const ref.

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


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/model_utils.cpp #606866:606867
@@ -100,7 +100,7 @@
     return NULL;
 }
 
-UMLObject* findUMLObject(UMLObjectList inList, QString name,
+UMLObject* findUMLObject(const UMLObjectList& inList, QString name,
                          Uml::Object_Type type /* = ot_UMLObject */,
                          UMLObject *currentObj /* = NULL */) {
     const bool caseSensitive = UMLApp::app()->activeLanguageIsCaseSensitive();
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/model_utils.h #606866:606867
@@ -65,7 +65,7 @@
  *                      object are searched before the global scope.
  * @return      Pointer to the UMLObject found, or NULL if not found.
  */
-UMLObject* findUMLObject( UMLObjectList inList, QString name,
+UMLObject* findUMLObject( const UMLObjectList& inList, QString name,
                           Uml::Object_Type type = Uml::ot_UMLObject,
                           UMLObject *currentObj = NULL);
 




More information about the umbrello-devel mailing list