diff data/model/Model.cpp @ 1668:1d1a16968f03 osc-script

A bit more debug output
author Chris Cannam
date Tue, 26 Mar 2019 14:34:21 +0000
parents 70e172e6cc59
children dfcd05e8bd2f
line wrap: on
line diff
--- a/data/model/Model.cpp	Tue Mar 26 14:31:42 2019 +0000
+++ b/data/model/Model.cpp	Tue Mar 26 14:34:21 2019 +0000
@@ -24,7 +24,7 @@
 
 Model::~Model()
 {
-//    SVDEBUG << "Model::~Model(" << this << ")" << endl;
+    SVDEBUG << "Model::~Model(" << this << ")" << endl;
 
     if (!m_aboutToDelete) {
         SVDEBUG << "NOTE: Model(" << this << ", \""
@@ -75,9 +75,10 @@
 void
 Model::aboutToDelete()
 {
-//    SVDEBUG << "Model(" << this << ", \""
-//            << objectName() << "\", type uri <"
-//            << m_typeUri << ">)::aboutToDelete()" << endl;
+    SVDEBUG << "Model(" << this << ", \""
+            << objectName() << "\", type name \""
+            << getTypeName() << "\", type uri <"
+            << m_typeUri << ">)::aboutToDelete()" << endl;
 
     if (m_aboutToDelete) {
         SVDEBUG << "WARNING: Model(" << this << ", \""
@@ -100,6 +101,9 @@
 void
 Model::setAlignment(AlignmentModel *alignment)
 {
+    SVDEBUG << "Model(" << this << "): accepting alignment model "
+            << alignment << endl;
+    
     if (m_alignment) {
         m_alignment->aboutToDelete();
         delete m_alignment;