diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2012-11-05 22:41:51 +0000 |
| commit | ec05778d5718a7912e506764d443a78d6a6179e3 (patch) | |
| tree | 78a9a01532180030c095acefc45763f07c14edb8 /src/unstable/settings.cpp | |
| parent | b20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff) | |
| download | libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2 libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip | |
Converted tabs to spaces with tabconv.
Diffstat (limited to 'src/unstable/settings.cpp')
| -rw-r--r-- | src/unstable/settings.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/unstable/settings.cpp b/src/unstable/settings.cpp index b812b60..ced8c97 100644 --- a/src/unstable/settings.cpp +++ b/src/unstable/settings.cpp | |||
| @@ -5,46 +5,46 @@ | |||
| 5 | #include "bu/settingsdriverini.h" | 5 | #include "bu/settingsdriverini.h" |
| 6 | 6 | ||
| 7 | Bu::Settings::Settings( const Bu::UtfString &sCompany, | 7 | Bu::Settings::Settings( const Bu::UtfString &sCompany, |
| 8 | const Bu::UtfString &sProduct, Bu::Settings::Driver eDriver ) : | 8 | const Bu::UtfString &sProduct, Bu::Settings::Driver eDriver ) : |
| 9 | sCompany( sCompany ), | 9 | sCompany( sCompany ), |
| 10 | sProduct( sProduct ), | 10 | sProduct( sProduct ), |
| 11 | pDriver( NULL ) | 11 | pDriver( NULL ) |
| 12 | { | 12 | { |
| 13 | switch( eDriver ) | 13 | switch( eDriver ) |
| 14 | { | 14 | { |
| 15 | case DriverNative: | 15 | case DriverNative: |
| 16 | #if defined( WIN32 ) | 16 | #if defined( WIN32 ) |
| 17 | pDriver = new Bu::SettingsDriverRegistry(); | 17 | pDriver = new Bu::SettingsDriverRegistry(); |
| 18 | #else | 18 | #else |
| 19 | pDriver = new Bu::SettingsDriverIni(); | 19 | pDriver = new Bu::SettingsDriverIni(); |
| 20 | #endif | 20 | #endif |
| 21 | break; | 21 | break; |
| 22 | 22 | ||
| 23 | case DriverTaf: | 23 | case DriverTaf: |
| 24 | pDriver = new Bu::SettingsDriverTaf(); | 24 | pDriver = new Bu::SettingsDriverTaf(); |
| 25 | break; | 25 | break; |
| 26 | 26 | ||
| 27 | case DriverIni: | 27 | case DriverIni: |
| 28 | pDriver = new Bu::SettingsDriverIni(); | 28 | pDriver = new Bu::SettingsDriverIni(); |
| 29 | break; | 29 | break; |
| 30 | } | 30 | } |
| 31 | 31 | ||
| 32 | pDriver->init( sCompany, sProduct ); | 32 | pDriver->init( sCompany, sProduct ); |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | Bu::Settings::~Settings() | 35 | Bu::Settings::~Settings() |
| 36 | { | 36 | { |
| 37 | delete pDriver; | 37 | delete pDriver; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | void Bu::Settings::set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ) | 40 | void Bu::Settings::set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ) |
| 41 | { | 41 | { |
| 42 | pDriver->set( sKey, sValue ); | 42 | pDriver->set( sKey, sValue ); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | Bu::UtfString Bu::Settings::get( const Bu::UtfString &sKey, | 45 | Bu::UtfString Bu::Settings::get( const Bu::UtfString &sKey, |
| 46 | const Bu::UtfString &sValue ) | 46 | const Bu::UtfString &sValue ) |
| 47 | { | 47 | { |
| 48 | return pDriver->get( sKey, sValue ); | 48 | return pDriver->get( sKey, sValue ); |
| 49 | } | 49 | } |
| 50 | 50 | ||
