summaryrefslogtreecommitdiff
path: root/src/paramproc.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-08-14 14:37:22 +0000
committerMike Buland <eichlan@xagasoft.com>2007-08-14 14:37:22 +0000
commitf1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d (patch)
treeba8615da5a64ea173001156a74fb1903ed6da9c6 /src/paramproc.h
parentcd0fef04fab0229ac9bb332806342fd8ee3c8673 (diff)
downloadlibbu++-f1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d.tar.gz
libbu++-f1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d.tar.bz2
libbu++-f1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d.tar.xz
libbu++-f1d6b50ac5a014a5cd87a605bd4f4e1e6342ef7d.zip
Fixed a crash in the FString::prepend function on a null string corner case.
Also added more tests to the FString unit tests and switched the ParamProc to using FString instead of std::string, this will break a few programs in very minor ways, a few seconds each to fix, I'd say.
Diffstat (limited to 'src/paramproc.h')
-rw-r--r--src/paramproc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paramproc.h b/src/paramproc.h
index 2bca588..a48de5d 100644
--- a/src/paramproc.h
+++ b/src/paramproc.h
@@ -15,7 +15,7 @@ namespace Bu
15 { 15 {
16 public: 16 public:
17 ParamPtr(); 17 ParamPtr();
18 ParamPtr( std::string *str ); 18 ParamPtr( Bu::FString *str );
19 ParamPtr( uint64_t *uint64 ); 19 ParamPtr( uint64_t *uint64 );
20 ParamPtr( uint32_t *uint32 ); 20 ParamPtr( uint32_t *uint32 );
21 ParamPtr( uint16_t *uint16 ); 21 ParamPtr( uint16_t *uint16 );
@@ -55,7 +55,7 @@ namespace Bu
55 int type; 55 int type;
56 union 56 union
57 { 57 {
58 std::string *str; 58 Bu::FString *str;
59 uint64_t *uint64; 59 uint64_t *uint64;
60 uint32_t *uint32; 60 uint32_t *uint32;
61 uint16_t *uint16; 61 uint16_t *uint16;