Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 1fe7951a61e8 |
children | 4806715f7a19 |
line wrap: on
line diff
--- a/layer/LayerFactory.cpp Thu May 12 17:31:43 2011 +0100 +++ b/layer/LayerFactory.cpp Mon May 16 17:19:25 2011 +0100 @@ -442,11 +442,11 @@ } if (!layer) { - std::cerr << "LayerFactory::createLayer: Unknown layer type " - << type << std::endl; + DEBUG << "LayerFactory::createLayer: Unknown layer type " + << type << endl; } else { -// std::cerr << "LayerFactory::createLayer: Setting object name " -// << getLayerPresentationName(type) << " on " << layer << std::endl; +// DEBUG << "LayerFactory::createLayer: Setting object name " +// << getLayerPresentationName(type) << " on " << layer << endl; layer->setObjectName(getLayerPresentationName(type)); setLayerDefaultProperties(type, layer); } @@ -457,7 +457,7 @@ void LayerFactory::setLayerDefaultProperties(LayerType type, Layer *layer) { -// std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << std::endl; +// DEBUG << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << endl; QSettings settings; settings.beginGroup("LayerDefaults");