diff base/XmlExportable.h @ 1738:4abc0f08adf9 by-id

More on alignment models and paths
author Chris Cannam
date Wed, 26 Jun 2019 10:21:15 +0100
parents f97d64b8674f
children d0ef65d8dd89
line wrap: on
line diff
--- a/base/XmlExportable.h	Tue Jun 25 18:56:57 2019 +0100
+++ b/base/XmlExportable.h	Wed Jun 26 10:21:15 2019 +0100
@@ -25,7 +25,12 @@
 class XmlExportable
 {
 public:
-    XmlExportable() : m_exportId(-1) { }
+    enum {
+        // The value NO_ID (-1) is never allocated as an export id
+        NO_ID = -1
+    };
+
+    XmlExportable() : m_exportId(NO_ID) { }
     virtual ~XmlExportable() { }
 
     /**