diff plugin/LADSPAPluginFactory.cpp @ 259:dc46851837d6

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 3a6af0e5e2d1
children d4a33cdca86f
line wrap: on
line diff
--- a/plugin/LADSPAPluginFactory.cpp	Mon Apr 30 09:07:42 2007 +0000
+++ b/plugin/LADSPAPluginFactory.cpp	Mon Apr 30 13:36:23 2007 +0000
@@ -594,11 +594,11 @@
 
 //    std::cerr << "LADSPAPluginFactory::discoverPlugins - "
 //	      << "discovering plugins; path is ";
-    for (std::vector<QString>::iterator i = pathList.begin();
-	 i != pathList.end(); ++i) {
-	std::cerr << "[" << i->toStdString() << "] ";
-    }
-    std::cerr << std::endl;
+//    for (std::vector<QString>::iterator i = pathList.begin();
+//	 i != pathList.end(); ++i) {
+//	std::cerr << "[" << i->toStdString() << "] ";
+//    }
+//    std::cerr << std::endl;
 
 #ifdef HAVE_LRDF
     // read the description files 
@@ -709,7 +709,7 @@
 	    defs = lrdf_get_setting_values(def_uri);
 	}
 
-	int controlPortNumber = 1;
+	unsigned int controlPortNumber = 1;
 	
 	for (unsigned long i = 0; i < descriptor->PortCount; i++) {
 	    
@@ -717,7 +717,7 @@
 		
 		if (def_uri && defs) {
 		    
-		    for (int j = 0; j < defs->count; j++) {
+		    for (unsigned int j = 0; j < defs->count; j++) {
 			if (defs->items[j].pid == controlPortNumber) {
 //			    std::cerr << "Default for this port (" << defs->items[j].pid << ", " << defs->items[j].label << ") is " << defs->items[j].value << "; applying this to port number " << i << " with name " << descriptor->PortNames[i] << std::endl;
 			    m_portDefaults[descriptor->UniqueID][i] =
@@ -820,7 +820,7 @@
     lrdf_uris *uris = lrdf_get_instances(uri.toStdString().c_str());
 
     if (uris != NULL) {
-	for (int i = 0; i < uris->count; ++i) {
+	for (unsigned int i = 0; i < uris->count; ++i) {
 	    m_lrdfTaxonomy[lrdf_get_uid(uris->items[i])] = base;
 	}
 	lrdf_free_uris(uris);
@@ -829,7 +829,7 @@
     uris = lrdf_get_subclasses(uri.toStdString().c_str());
 
     if (uris != NULL) {
-	for (int i = 0; i < uris->count; ++i) {
+	for (unsigned int i = 0; i < uris->count; ++i) {
 	    char *label = lrdf_get_label(uris->items[i]);
 	    generateTaxonomy(uris->items[i],
 			     base + (base.length() > 0 ? " > " : "") + label);