From 52833d24ba86c3e0fe90a12d65f6dc529e9280b7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 18 Aug 2021 19:33:14 -0700 Subject: String was missing assignment? --- src/stable/string.cpp | 7 +++++++ src/stable/string.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'src/stable') 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 ) return (*this); } +Bu::String &Bu::String::operator=( const Bu::String &pData ) +{ + set( pData ); + + return (*this); +} + Bu::String Bu::String::operator+( const Bu::String &rRight ) const { 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 * String. */ String &operator=( const char *pData ); + + String &operator=( const String &pData ); String operator+( const String &rRight ) const; -- cgit v1.2.3