# HG changeset patch # User Chris Cannam # Date 1385473693 0 # Node ID a299c4cec0f82099b61307b8f974fb12c6fb44fd # Parent f5cd339097442e04b39992ed21cc1e8028417ba8 Likewise, but for toLocal8Bit().data() diff -r f5cd33909744 -r a299c4cec0f8 base/Debug.cpp --- a/base/Debug.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/base/Debug.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -75,7 +75,7 @@ std::ostream & operator<<(std::ostream &target, const QString &str) { - return target << str.toLocal8Bit().data(); + return target << str; } std::ostream & diff -r f5cd33909744 -r a299c4cec0f8 data/fileio/OggVorbisFileReader.cpp --- a/data/fileio/OggVorbisFileReader.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/data/fileio/OggVorbisFileReader.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -50,7 +50,7 @@ m_channelCount = 0; m_fileRate = 0; -// SVDEBUG << "OggVorbisFileReader::OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (++instances) << " instances" << endl; +// SVDEBUG << "OggVorbisFileReader::OggVorbisFileReader(" << m_path << "): now have " << (++instances) << " instances" << endl; Profiler profiler("OggVorbisFileReader::OggVorbisFileReader", true); @@ -102,7 +102,7 @@ OggVorbisFileReader::~OggVorbisFileReader() { -// SVDEBUG << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path.toLocal8Bit().data() << "): now have " << (--instances) << " instances" << endl; +// SVDEBUG << "OggVorbisFileReader::~OggVorbisFileReader(" << m_path << "): now have " << (--instances) << " instances" << endl; if (m_decodeThread) { m_cancelled = true; m_decodeThread->wait(); diff -r f5cd33909744 -r a299c4cec0f8 plugin/DSSIPluginInstance.cpp --- a/plugin/DSSIPluginInstance.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/plugin/DSSIPluginInstance.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -41,7 +41,7 @@ #ifdef DEBUG_DSSI static std::ostream &operator<<(std::ostream& o, const QString &s) { - o << s.toLocal8Bit().data(); + o << s; return o; } #endif diff -r f5cd33909744 -r a299c4cec0f8 plugin/PluginXml.cpp --- a/plugin/PluginXml.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/plugin/PluginXml.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -200,7 +200,7 @@ int errorColumn; // SVDEBUG << "PluginXml::setParametersFromXml: XML is \"" -// << xml.toLocal8Bit().data() << "\"" << endl; +// << xml << "\"" << endl; if (!doc.setContent(xml, false, &error, &errorLine, &errorColumn)) { cerr << "PluginXml::setParametersFromXml: Error in parsing XML: " << error << " at line " << errorLine << ", column " << errorColumn << endl; diff -r f5cd33909744 -r a299c4cec0f8 plugin/plugins/SamplePlayer.cpp --- a/plugin/plugins/SamplePlayer.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/plugin/plugins/SamplePlayer.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -365,7 +365,7 @@ #ifdef DEBUG_SAMPLE_PLAYER SVDEBUG << "SamplePlayer::searchSamples: Directory is \"" - << m_sampleDir.toLocal8Bit().data() << "\"" << endl; + << m_sampleDir << "\"" << endl; #endif QDir dir(m_sampleDir, "*.wav"); @@ -376,7 +376,7 @@ m_samples.push_back(std::pair (file.baseName(), file.filePath())); #ifdef DEBUG_SAMPLE_PLAYER - cerr << "Found: " << dir[i].toLocal8Bit().data() << endl; + cerr << "Found: " << dir[i] << endl; #endif } } @@ -397,7 +397,7 @@ file = sf_open(path.toLocal8Bit().data(), SFM_READ, &info); if (!file) { cerr << "SamplePlayer::loadSampleData: Failed to open file " - << path.toLocal8Bit().data() << ": " + << path << ": " << sf_strerror(file) << endl; return; } diff -r f5cd33909744 -r a299c4cec0f8 transform/TransformFactory.cpp --- a/transform/TransformFactory.cpp Tue Nov 26 13:43:31 2013 +0000 +++ b/transform/TransformFactory.cpp Tue Nov 26 13:48:13 2013 +0000 @@ -413,7 +413,7 @@ FeatureExtractionPluginFactory::instanceFor(pluginId); if (!factory) { - cerr << "WARNING: TransformFactory::populateTransforms: No feature extraction plugin factory for instance " << pluginId.toLocal8Bit().data() << endl; + cerr << "WARNING: TransformFactory::populateTransforms: No feature extraction plugin factory for instance " << pluginId << endl; continue; } @@ -421,7 +421,7 @@ factory->instantiatePlugin(pluginId, 44100); if (!plugin) { - cerr << "WARNING: TransformFactory::populateTransforms: Failed to instantiate plugin " << pluginId.toLocal8Bit().data() << endl; + cerr << "WARNING: TransformFactory::populateTransforms: Failed to instantiate plugin " << pluginId << endl; continue; } @@ -514,7 +514,7 @@ RealTimePluginFactory::instanceFor(pluginId); if (!factory) { - cerr << "WARNING: TransformFactory::populateTransforms: No real time plugin factory for instance " << pluginId.toLocal8Bit().data() << endl; + cerr << "WARNING: TransformFactory::populateTransforms: No real time plugin factory for instance " << pluginId << endl; continue; } @@ -522,7 +522,7 @@ factory->getPluginDescriptor(pluginId); if (!descriptor) { - cerr << "WARNING: TransformFactory::populateTransforms: Failed to query plugin " << pluginId.toLocal8Bit().data() << endl; + cerr << "WARNING: TransformFactory::populateTransforms: Failed to query plugin " << pluginId << endl; continue; }