comparison plugin/LADSPAPluginFactory.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 b14064bd1f97
comparison
equal deleted inserted replaced
972:a0573186435e 973:7aa9088e9bcd
728 // cout << identifier << "::" << m_taxonomy[identifier] << endl; 728 // cout << identifier << "::" << m_taxonomy[identifier] << endl;
729 } 729 }
730 730
731 QString category = m_taxonomy[identifier]; 731 QString category = m_taxonomy[identifier];
732 732
733 if (category == "" && descriptor->Name != 0) { 733 if (category == "") {
734 std::string name = descriptor->Name; 734 std::string name = rtd->name;
735 if (name.length() > 4 && 735 if (name.length() > 4 &&
736 name.substr(name.length() - 4) == " VST") { 736 name.substr(name.length() - 4) == " VST") {
737 category = "VST effects"; 737 category = "VST effects";
738 m_taxonomy[identifier] = category; 738 m_taxonomy[identifier] = category;
739 } 739 }