Mercurial > hg > svgui
diff layer/ImageLayer.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 | 69089c9dc42e |
children | f4960f8ce798 |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Thu Apr 14 15:21:21 2011 +0100 +++ b/layer/ImageLayer.cpp Thu May 12 17:31:43 2011 +0100 @@ -500,7 +500,7 @@ bool ImageLayer::getImageOriginalSize(QString name, QSize &size) const { -// std::cerr << "getImageOriginalSize: \"" << name.toStdString() << "\"" << std::endl; +// std::cerr << "getImageOriginalSize: \"" << name << "\"" << std::endl; QMutexLocker locker(&m_imageMapMutex); if (m_images.find(name) == m_images.end()) { @@ -521,7 +521,7 @@ { bool need = false; -// std::cerr << "ImageLayer::getImage(" << v << ", " << name.toStdString() << ", (" +// std::cerr << "ImageLayer::getImage(" << v << ", " << name << ", (" // << maxSize.width() << "x" << maxSize.height() << "))" << std::endl; if (!m_scaled[v][name].isNull() && @@ -627,7 +627,7 @@ { QImage image(getLocalFilename(url)); if (image.isNull()) { - std::cerr << "Failed to open image from url \"" << url.toStdString() << "\" (local filename \"" << getLocalFilename(url).toStdString() << "\"" << std::endl; + std::cerr << "Failed to open image from url \"" << url << "\" (local filename \"" << getLocalFilename(url) << "\"" << std::endl; delete m_fileSources[url]; m_fileSources.erase(url); return false; @@ -906,7 +906,7 @@ void ImageLayer::checkAddSource(QString img) const { - std::cerr << "ImageLayer::checkAddSource(" << img.toStdString() << "): yes, trying..." << std::endl; + std::cerr << "ImageLayer::checkAddSource(" << img << "): yes, trying..." << std::endl; if (m_fileSources.find(img) != m_fileSources.end()) { return; @@ -915,7 +915,7 @@ ProgressDialog dialog(tr("Opening image URL..."), true, 2000); FileSource *rf = new FileSource(img, &dialog); if (rf->isOK()) { - std::cerr << "ok, adding it (local filename = " << rf->getLocalFilename().toStdString() << ")" << std::endl; + std::cerr << "ok, adding it (local filename = " << rf->getLocalFilename() << ")" << std::endl; m_fileSources[img] = rf; connect(rf, SIGNAL(ready()), this, SLOT(fileSourceReady())); } else { @@ -948,7 +948,7 @@ i != m_fileSources.end(); ++i) { if (i->second == rf) { img = i->first; -// std::cerr << "it's image \"" << img.toStdString() << "\"" << std::endl; +// std::cerr << "it's image \"" << img << "\"" << std::endl; break; } }