summaryrefslogtreecommitdiff
path: root/src/strings/astring.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/astring.cpp')
-rw-r--r--src/strings/astring.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/strings/astring.cpp b/src/strings/astring.cpp
index f1e9030..0906584 100644
--- a/src/strings/astring.cpp
+++ b/src/strings/astring.cpp
@@ -156,6 +156,13 @@ namespace strings
special = 255 - x.size();
}
}
+ AString::AString(LString l)
+ : data{}, special()
+ {
+ new(r_ptr()) RString();
+ special = 255;
+ *this = XString(l);
+ }
AString::iterator AString::begin() const
{