Mercurial > hg > svgui
diff layer/LayerFactory.cpp @ 584:1fe7951a61e8 debug-output
Remove most toStdString calls (no longer needed, with debug header)
author | Chris Cannam |
---|---|
date | Thu, 12 May 2011 17:31:43 +0100 |
parents | 96e4d7b9e165 |
children | f4960f8ce798 |
line wrap: on
line diff
--- a/layer/LayerFactory.cpp Thu Apr 14 15:21:21 2011 +0100 +++ b/layer/LayerFactory.cpp Thu May 12 17:31:43 2011 +0100 @@ -446,7 +446,7 @@ << type << std::endl; } else { // std::cerr << "LayerFactory::createLayer: Setting object name " -// << getLayerPresentationName(type).toStdString() << " on " << layer << std::endl; +// << getLayerPresentationName(type) << " on " << layer << std::endl; layer->setObjectName(getLayerPresentationName(type)); setLayerDefaultProperties(type, layer); } @@ -457,14 +457,14 @@ void LayerFactory::setLayerDefaultProperties(LayerType type, Layer *layer) { -// std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type).toStdString() << "\")" << std::endl; +// std::cerr << "LayerFactory::setLayerDefaultProperties: type " << type << " (name \"" << getLayerTypeName(type) << "\")" << std::endl; QSettings settings; settings.beginGroup("LayerDefaults"); QString defaults = settings.value(getLayerTypeName(type), "").toString(); if (defaults == "") return; -// std::cerr << "defaults=\"" << defaults.toStdString() << "\"" << std::endl; +// std::cerr << "defaults=\"" << defaults << "\"" << std::endl; QString xml = layer->toXmlString(); QDomDocument docOld, docNew; @@ -481,7 +481,7 @@ QDomAttr attr = attrNodes.item(i).toAttr(); if (attr.isNull()) continue; // std::cerr << "append \"" << attr.name().toStdString() -// << "\" -> \"" << attr.value().toStdString() << "\"" +// << "\" -> \"" << attr.value() << "\"" // << std::endl; attrs.append(attr.name(), "", "", attr.value()); } @@ -493,7 +493,7 @@ if (attr.isNull()) continue; if (attrs.value(attr.name()) == "") { // std::cerr << "append \"" << attr.name().toStdString() -// << "\" -> \"" << attr.value().toStdString() << "\"" +// << "\" -> \"" << attr.value() << "\"" // << std::endl; attrs.append(attr.name(), "", "", attr.value()); }