[Uml-devel] kdesdk/umbrello/umbrello

Brian Thomas thomas at mail630.gsfc.nasa.gov
Sat Sep 13 12:14:02 UTC 2003


CVS commit by thomas: 

found these inline ID accessors while trying to track down bug 64201. Turns out that you need to make clean; make distclean to remove the 'bug'. These changes are more for beauty than a requirement to fix a bug


  M +4 -0      umldoc.cpp   1.65
  M +1 -3      umldoc.h   1.34
  M +8 -0      umllistviewitemdata.cpp   1.6


--- kdesdk/umbrello/umbrello/umldoc.h  #1.33:1.34
@@ -393,7 +393,5 @@ public:
          *      @return Returns a unique ID.
          */
-        int getUniqueID() {
-                return ++uniqueID;
-        }
+        int getUniqueID();
 
         /**

--- kdesdk/umbrello/umbrello/umldoc.cpp  #1.64:1.65
@@ -1920,4 +1920,8 @@ void UMLDoc::endPaste() {
 }
 
+int UMLDoc::getUniqueID() {
+        return ++uniqueID;
+}
+
 /** Assigns a New ID to an Object, and also logs the assignment to its internal
 ChangeLog */

--- kdesdk/umbrello/umbrello/umllistviewitemdata.cpp  #1.5:1.6
@@ -63,4 +63,12 @@ UMLListViewItemData& UMLListViewItemData
 }
 
+void UMLListViewItemData::setID( int id ) {
+        m_nId = id;
+}
+
+int UMLListViewItemData::getID() {
+        return m_nId;
+}
+
 bool UMLListViewItemData::operator==(const UMLListViewItemData& Other) {
         if(m_pItem != Other.m_pItem) {






More information about the umbrello-devel mailing list