[Uml-devel] kdesdk/umbrello/umbrello

Luis De la Parra Blum lparrab at gmx.net
Mon Apr 7 15:18:06 UTC 2003


CVS commit by luis: 

declare some getter methods const


  M +2 -2      umlobject.cpp   1.5
  M +6 -6      umlobject.h   1.9


--- kdesdk/umbrello/umbrello/umlobject.h  #1.8:1.9
@@ -66,5 +66,5 @@ public:
          *      @return Returns the type of the object.
          */
-        UMLObject_Type getBaseType() {
+        UMLObject_Type getBaseType() const {
                 return m_BaseType;
         }
@@ -75,5 +75,5 @@ public:
          *      @return Returns the ID of the object.
          */
-        int getID() {
+        int getID() const{
                 return m_nId;
         }
@@ -93,5 +93,5 @@ public:
          *      @return Returns the documentation for the object.
          */
-        QString getDoc() {
+        QString getDoc() const{
                 return m_Doc;
         }
@@ -102,5 +102,5 @@ public:
          *      @return Returns the scope of the object.
          */
-        Scope getScope() {
+        Scope getScope() const{
                 return m_Scope;
         }
@@ -176,5 +176,5 @@ public:
          *   Returns a copy of m_Name
          */
-        QString getName();
+        QString getName() const;
 
         /**
@@ -186,5 +186,5 @@ public:
          *   Returns the abstract state of the object.
          */
-        bool getAbstract();
+        bool getAbstract() const;
 
         /**

--- kdesdk/umbrello/umbrello/umlobject.cpp  #1.4:1.5
@@ -90,5 +90,5 @@ void UMLObject::setName(QString strName)
 }
 ////////////////////////////////////////////////////////////////////////////////////////////////////
-QString UMLObject::getName() {
+QString UMLObject::getName() const {
         return m_Name;
 }
@@ -177,5 +177,5 @@ bool UMLObject::operator==(UMLObject & r
 }
 
-bool UMLObject::getAbstract() {
+bool UMLObject::getAbstract() const{
         return m_bAbstract;
 }






More information about the umbrello-devel mailing list