Mercurial > hg > svcore
comparison plugin/DSSIPluginFactory.cpp @ 973:7aa9088e9bcd
Fix various slightly dodgy derefs and the like (from coverity scan)
author | Chris Cannam |
---|---|
date | Wed, 03 Sep 2014 11:20:18 +0100 |
parents | f5810f1270ae |
children | cc27f35aa75c |
comparison
equal
deleted
inserted
replaced
972:a0573186435e | 973:7aa9088e9bcd |
---|---|
344 if (category == "" && m_lrdfTaxonomy[ladspaDescriptor->UniqueID] != "") { | 344 if (category == "" && m_lrdfTaxonomy[ladspaDescriptor->UniqueID] != "") { |
345 m_taxonomy[identifier] = m_lrdfTaxonomy[ladspaDescriptor->UniqueID]; | 345 m_taxonomy[identifier] = m_lrdfTaxonomy[ladspaDescriptor->UniqueID]; |
346 category = m_taxonomy[identifier]; | 346 category = m_taxonomy[identifier]; |
347 } | 347 } |
348 | 348 |
349 if (category == "" && ladspaDescriptor->Name != 0) { | 349 if (category == "") { |
350 std::string name = ladspaDescriptor->Name; | 350 std::string name = rtd->name; |
351 if (name.length() > 4 && | 351 if (name.length() > 4 && |
352 name.substr(name.length() - 4) == " VST") { | 352 name.substr(name.length() - 4) == " VST") { |
353 if (descriptor->run_synth || descriptor->run_multiple_synths) { | 353 if (descriptor->run_synth || descriptor->run_multiple_synths) { |
354 category = "VST instruments"; | 354 category = "VST instruments"; |
355 } else { | 355 } else { |