Skip to content
Commit 959be508 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

Change StereotypesModel member m_stereotypes from pointer to reference:

umbrello/models/stereotypesmodel.h
- Change member m_stereotypes from pointer to reference.
- At constructor change UMLStereotypeList argument from pointer to
  reference.

umbrello/models/stereotypesmodel.cpp
- Adjust code manipulating m_stereotypes to the above change.
- In function addStereotype, if the passed in pointer is not found in
  m_stereotypes then compare the passed in stereotype's name to the
  names in m_stereotypes. If a match is found then do not add the
  pointer passed in.
- In function removeStereotype, if the passed in pointer is not found in
  m_stereotypes then compare the passed in stereotype's name to the
  names in m_stereotypes:
  - If no match is found then return false without attempting removal.
  - If a match is found then remove the matching pointer.

umbrello/umldoc.cpp
- In constructor, on initializing m_stereotypesModel pass m_stereoList
  to constructor of StereotypesModel by reference instead of address.
parent d6ff4174
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment