Make* -> Driver::Create. Having these floating in arch.h isn't

useful; if you create the class, you need the class definition to
free it, and anyone creating a class is probably going to use it,
too.
This commit is contained in:
Glenn Maynard
2006-12-17 07:41:21 +00:00
parent 50ca6633cb
commit 17c32b90c2
14 changed files with 19 additions and 14 deletions
+1 -3
View File
@@ -15,8 +15,6 @@
#include "CommonMetrics.h"
#include "Style.h"
#include "arch/arch.h"
const RString DEFAULT_LIGHTS_DRIVER = "Null";
static Preference<RString> g_sLightsDriver( "LightsDriver", "" ); // "" == DEFAULT_LIGHTS_DRIVER
Preference<float> g_fLightsFalloffSeconds( "LightsFalloffSeconds", 0.1f );
@@ -90,7 +88,7 @@ LightsManager::LightsManager()
RString sDriver = g_sLightsDriver.Get();
if( sDriver.empty() )
sDriver = DEFAULT_LIGHTS_DRIVER;
MakeLightsDrivers( sDriver, m_vpDrivers );
LightsDriver::Create( sDriver, m_vpDrivers );
m_fTestAutoCycleCurrentIndex = 0;
m_clTestManualCycleCurrent = CabinetLight_Invalid;
m_iControllerTestManualCycleCurrent = -1;