From d7012045bb61f117fb7b9c51ddd03e4c54f25fe6 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 31 Oct 2024 21:40:55 +0100 Subject: more more more more WIP --- backend/String.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'backend/String.cpp') 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()); } -- cgit v1.2.3