diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-31 21:40:55 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-31 21:40:55 +0100 |
commit | d7012045bb61f117fb7b9c51ddd03e4c54f25fe6 (patch) | |
tree | 28cadae7a828865aa4bd13f62fb83f81c600b063 /backend/String.cpp | |
parent | 82dcf9e2dd3596b28ef846f4a217dc19c21cf781 (diff) |
more more more more WIP
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()); } |