comparison plugin/LADSPAPluginFactory.cpp @ 844:f5cd33909744

Drop toStdString, with debug header we can stream QStrings
author Chris Cannam
date Tue, 26 Nov 2013 13:43:31 +0000
parents e802e550a1f2
children 59e7fe1b1003
comparison
equal deleted inserted replaced
843:e802e550a1f2 844:f5cd33909744
78 i != m_identifiers.end(); ++i) { 78 i != m_identifiers.end(); ++i) {
79 79
80 const LADSPA_Descriptor *descriptor = getLADSPADescriptor(*i); 80 const LADSPA_Descriptor *descriptor = getLADSPADescriptor(*i);
81 81
82 if (!descriptor) { 82 if (!descriptor) {
83 cerr << "WARNING: LADSPAPluginFactory::enumeratePlugins: couldn't get descriptor for identifier " << i->toStdString() << endl; 83 cerr << "WARNING: LADSPAPluginFactory::enumeratePlugins: couldn't get descriptor for identifier " << *i << endl;
84 continue; 84 continue;
85 } 85 }
86 86
87 list.push_back(*i); 87 list.push_back(*i);
88 list.push_back(descriptor->Name); 88 list.push_back(descriptor->Name);
92 list.push_back(descriptor->Copyright); 92 list.push_back(descriptor->Copyright);
93 list.push_back("false"); // is synth 93 list.push_back("false"); // is synth
94 list.push_back("false"); // is grouped 94 list.push_back("false"); // is grouped
95 95
96 if (m_taxonomy.find(*i) != m_taxonomy.end() && m_taxonomy[*i] != "") { 96 if (m_taxonomy.find(*i) != m_taxonomy.end() && m_taxonomy[*i] != "") {
97 // cerr << "LADSPAPluginFactory: cat for " << i->toStdString()<< " found in taxonomy as " << m_taxonomy[descriptor->UniqueID] << endl; 97 // cerr << "LADSPAPluginFactory: cat for " << *i << " found in taxonomy as " << m_taxonomy[descriptor->UniqueID] << endl;
98 list.push_back(m_taxonomy[*i]); 98 list.push_back(m_taxonomy[*i]);
99 } else { 99 } else {
100 list.push_back(""); 100 list.push_back("");
101 // cerr << "LADSPAPluginFactory: cat for " << i->toStdString() << " not found (despite having " << m_fallbackCategories.size() << " fallbacks)" << endl; 101 // cerr << "LADSPAPluginFactory: cat for " << *i << " not found (despite having " << m_fallbackCategories.size() << " fallbacks)" << endl;
102 102
103 } 103 }
104 104
105 list.push_back(QString("%1").arg(descriptor->PortCount)); 105 list.push_back(QString("%1").arg(descriptor->PortCount));
106 106