aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/settingsdrivertaf.cpp
diff options
context:
space:
mode:
authorMike Buland <mbuland@penny-arcade.com>2023-04-24 09:16:32 -0700
committerMike Buland <mbuland@penny-arcade.com>2023-04-24 09:16:32 -0700
commite1115a28535663cfe404791ede5bb7ca70399053 (patch)
treeb9d273abd126e410fb59d39d9c99072149a14c5c /src/unstable/settingsdrivertaf.cpp
parent44409ec7257cb20ff091079eb55dc7a8d4049cf9 (diff)
downloadlibbu++-e1115a28535663cfe404791ede5bb7ca70399053.tar.gz
libbu++-e1115a28535663cfe404791ede5bb7ca70399053.tar.bz2
libbu++-e1115a28535663cfe404791ede5bb7ca70399053.tar.xz
libbu++-e1115a28535663cfe404791ede5bb7ca70399053.zip
Additions to blob/utfstring for json.
Diffstat (limited to '')
-rw-r--r--src/unstable/settingsdrivertaf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/unstable/settingsdrivertaf.cpp b/src/unstable/settingsdrivertaf.cpp
index 3fd61b3..d99d0ba 100644
--- a/src/unstable/settingsdrivertaf.cpp
+++ b/src/unstable/settingsdrivertaf.cpp
@@ -48,7 +48,7 @@ void Bu::SettingsDriverTaf::init( const Bu::UtfString &sCompany,
48void Bu::SettingsDriverTaf::set( const Bu::UtfString &sKey, 48void Bu::SettingsDriverTaf::set( const Bu::UtfString &sKey,
49 const Bu::UtfString &sValue ) 49 const Bu::UtfString &sValue )
50{ 50{
51 Bu::StringList lPath = sKey.get().split('/'); 51 Bu::StringList lPath = Bu::String(sKey.get()).split('/');
52 Bu::StringList::iterator i = lPath.begin(); 52 Bu::StringList::iterator i = lPath.begin();
53 Bu::StringList::iterator in; 53 Bu::StringList::iterator in;
54 Bu::TafGroup *pGrp = pRoot; 54 Bu::TafGroup *pGrp = pRoot;
@@ -74,7 +74,7 @@ void Bu::SettingsDriverTaf::set( const Bu::UtfString &sKey,
74Bu::UtfString Bu::SettingsDriverTaf::get( const Bu::UtfString &sKey, 74Bu::UtfString Bu::SettingsDriverTaf::get( const Bu::UtfString &sKey,
75 const Bu::UtfString &sValue ) 75 const Bu::UtfString &sValue )
76{ 76{
77 Bu::StringList lPath = sKey.get().split('/'); 77 Bu::StringList lPath = Bu::String(sKey.get()).split('/');
78 Bu::StringList::iterator i = lPath.begin(); 78 Bu::StringList::iterator i = lPath.begin();
79 Bu::StringList::iterator in; 79 Bu::StringList::iterator in;
80 Bu::TafGroup *pGrp = pRoot; 80 Bu::TafGroup *pGrp = pRoot;
@@ -98,5 +98,7 @@ Bu::UtfString Bu::SettingsDriverTaf::get( const Bu::UtfString &sKey,
98 } 98 }
99 i = in; 99 i = in;
100 } 100 }
101
102 return Bu::UtfString();
101} 103}
102 104