aboutsummaryrefslogtreecommitdiff
path: root/src/configmanagerbase.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-09 19:25:29 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-09 19:25:29 +0000
commit3603e0707f066228267709fd40d76d8573329869 (patch)
tree215084e6ce579c34e79cbf0097bb75584dc49a4e /src/configmanagerbase.cpp
parent4f91790abe1b77f1a27ca46edd8143ef2d2b9fde (diff)
downloadlibbu++-3603e0707f066228267709fd40d76d8573329869.tar.gz
libbu++-3603e0707f066228267709fd40d76d8573329869.tar.bz2
libbu++-3603e0707f066228267709fd40d76d8573329869.tar.xz
libbu++-3603e0707f066228267709fd40d76d8573329869.zip
Fixed a bug in the config manager base that caused config files to never load
or work.
Diffstat (limited to 'src/configmanagerbase.cpp')
-rw-r--r--src/configmanagerbase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configmanagerbase.cpp b/src/configmanagerbase.cpp
index 4b94cc6..cf7eb3e 100644
--- a/src/configmanagerbase.cpp
+++ b/src/configmanagerbase.cpp
@@ -17,13 +17,13 @@ void ConfigManagerBase::addSearchPath( const std::string &sPath )
17 lSearchPath.push_back( sPath ); 17 lSearchPath.push_back( sPath );
18} 18}
19 19
20void ConfigManagerBase::loadConfig( const char *lpProfile ) 20void ConfigManagerBase::loadConfig( const std::string &sFileName, const char *lpProfile )
21{ 21{
22 // Try a few locations... 22 // Try a few locations...
23 std::list<std::string>::const_iterator i; 23 std::list<std::string>::const_iterator i;
24 for( i = lSearchPath.begin(); i != lSearchPath.end(); i++ ) 24 for( i = lSearchPath.begin(); i != lSearchPath.end(); i++ )
25 { 25 {
26 if( parseConfig( (*i).c_str(), lpProfile ) ) 26 if( parseConfig( (*i+sFileName).c_str(), lpProfile ) )
27 { 27 {
28 break; 28 break;
29 } 29 }