File diff r27319:ea7c4a418203 → r27320:a815d811abc1
src/driver.cpp
Show inline comments
 
@@ -105,9 +105,8 @@ bool DriverFactoryBase::SelectDriverImpl
 
	if (name.empty()) {
 
		/* Probe for this driver, but do not fall back to dedicated/null! */
 
		for (int priority = 10; priority > 0; priority--) {
 
			Drivers::iterator it = GetDrivers().begin();
 
			for (; it != GetDrivers().end(); ++it) {
 
				DriverFactoryBase *d = (*it).second;
 
			for (auto &it : GetDrivers()) {
 
				DriverFactoryBase *d = it.second;
 

	
 
				/* Check driver type */
 
				if (d->type != type) continue;
 
@@ -151,9 +150,8 @@ bool DriverFactoryBase::SelectDriverImpl
 
		}
 

	
 
		/* Find this driver */
 
		Drivers::iterator it = GetDrivers().begin();
 
		for (; it != GetDrivers().end(); ++it) {
 
			DriverFactoryBase *d = (*it).second;
 
		for (auto &it : GetDrivers()) {
 
			DriverFactoryBase *d = it.second;
 

	
 
			/* Check driver type */
 
			if (d->type != type) continue;
 
@@ -191,9 +189,8 @@ char *DriverFactoryBase::GetDriversInfo(
 
		p += seprintf(p, last, "List of %s drivers:\n", GetDriverTypeName(type));
 

	
 
		for (int priority = 10; priority >= 0; priority--) {
 
			Drivers::iterator it = GetDrivers().begin();
 
			for (; it != GetDrivers().end(); it++) {
 
				DriverFactoryBase *d = (*it).second;
 
			for (auto &it : GetDrivers()) {
 
				DriverFactoryBase *d = it.second;
 
				if (d->type != type) continue;
 
				if (d->priority != priority) continue;
 
				p += seprintf(p, last, "%18s: %s\n", d->name, d->GetDescription());