diff options
author | Mike Buland <mike@xagasoft.com> | 2021-08-18 19:33:14 -0700 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2021-08-18 19:33:14 -0700 |
commit | 52833d24ba86c3e0fe90a12d65f6dc529e9280b7 (patch) | |
tree | 614f12bfc368925b6a40b211f31d2315b3f5ad90 /src | |
parent | 0fbcc3a0c7ef4835c77c5d8b87cc8732cc3f90df (diff) | |
download | libbu++-52833d24ba86c3e0fe90a12d65f6dc529e9280b7.tar.gz libbu++-52833d24ba86c3e0fe90a12d65f6dc529e9280b7.tar.bz2 libbu++-52833d24ba86c3e0fe90a12d65f6dc529e9280b7.tar.xz libbu++-52833d24ba86c3e0fe90a12d65f6dc529e9280b7.zip |
String was missing assignment?
Diffstat (limited to '')
-rw-r--r-- | src/stable/string.cpp | 7 | ||||
-rw-r--r-- | src/stable/string.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/stable/string.cpp b/src/stable/string.cpp index dac690b..59d8147 100644 --- a/src/stable/string.cpp +++ b/src/stable/string.cpp | |||
@@ -644,6 +644,13 @@ Bu::String &Bu::String::operator=( const char *pData ) | |||
644 | return (*this); | 644 | return (*this); |
645 | } | 645 | } |
646 | 646 | ||
647 | Bu::String &Bu::String::operator=( const Bu::String &pData ) | ||
648 | { | ||
649 | set( pData ); | ||
650 | |||
651 | return (*this); | ||
652 | } | ||
653 | |||
647 | Bu::String Bu::String::operator+( const Bu::String &rRight ) const | 654 | Bu::String Bu::String::operator+( const Bu::String &rRight ) const |
648 | { | 655 | { |
649 | String ret( *this ); | 656 | String ret( *this ); |
diff --git a/src/stable/string.h b/src/stable/string.h index 89601a7..c469580 100644 --- a/src/stable/string.h +++ b/src/stable/string.h | |||
@@ -761,6 +761,8 @@ namespace Bu | |||
761 | * String. | 761 | * String. |
762 | */ | 762 | */ |
763 | String &operator=( const char *pData ); | 763 | String &operator=( const char *pData ); |
764 | |||
765 | String &operator=( const String &pData ); | ||
764 | 766 | ||
765 | String operator+( const String &rRight ) const; | 767 | String operator+( const String &rRight ) const; |
766 | 768 | ||