diff options
Diffstat (limited to 'backend/String.cpp')
-rw-r--r-- | backend/String.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/String.cpp b/backend/String.cpp index a8b648a..2f998be 100644 --- a/backend/String.cpp +++ b/backend/String.cpp @@ -10,6 +10,11 @@ String::String() { this->set(""); } + +String & String::operator = (const String & other) { + this->set(other.data(), other.size()); + return *this; +} String::String(const String & other) { this->set(other.data(), other.size()); } |