diff base/XmlExportable.h @ 1750:d0ef65d8dd89 by-id

Return id from add(), + comment
author Chris Cannam
date Thu, 04 Jul 2019 14:30:48 +0100
parents 4abc0f08adf9
children
line wrap: on
line diff
--- a/base/XmlExportable.h	Thu Jul 04 14:30:41 2019 +0100
+++ b/base/XmlExportable.h	Thu Jul 04 14:30:48 2019 +0100
@@ -30,6 +30,8 @@
         NO_ID = -1
     };
 
+    typedef int ExportId;
+    
     XmlExportable() : m_exportId(NO_ID) { }
     virtual ~XmlExportable() { }
 
@@ -38,7 +40,7 @@
      * allocated the first time this is called, so objects on which
      * this is never called do not get allocated one.
      */
-    int getExportId() const;
+    ExportId getExportId() const;
 
     /**
      * Stream this exportable object out to XML on a text stream.