diff view/PaneStack.cpp @ 585:f4960f8ce798 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:25 +0100
parents 566787389e59
children 4806715f7a19
line wrap: on
line diff
--- a/view/PaneStack.cpp	Thu May 12 17:31:43 2011 +0100
+++ b/view/PaneStack.cpp	Mon May 16 17:19:25 2011 +0100
@@ -495,10 +495,10 @@
     for (size_t i = 0; i < m_panes.size(); ++i) {
 	if (!m_panes[i].propertyStack) continue;
 #ifdef DEBUG_PANE_STACK
-	std::cerr << "PaneStack::sizePropertyStacks: " << i << ": min " 
+	DEBUG << "PaneStack::sizePropertyStacks: " << i << ": min " 
 		  << m_panes[i].propertyStack->minimumSizeHint().width() << ", hint "
                   << m_panes[i].propertyStack->sizeHint().width() << ", current "
-		  << m_panes[i].propertyStack->width() << std::endl;
+		  << m_panes[i].propertyStack->width() << endl;
 #endif
 
 	if (m_panes[i].propertyStack->sizeHint().width() > maxMinWidth) {
@@ -507,7 +507,7 @@
     }
 
 #ifdef DEBUG_PANE_STACK
-    std::cerr << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << std::endl;
+    DEBUG << "PaneStack::sizePropertyStacks: max min width " << maxMinWidth << endl;
 #endif
 
     int setWidth = maxMinWidth;