mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
add an operator= to assign to smallstring.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4379efced7
commit
0fbdfc3664
@ -46,6 +46,11 @@ public:
|
||||
}
|
||||
|
||||
// Extra operators.
|
||||
const SmallString &operator=(const char *RHS) {
|
||||
this->clear();
|
||||
return *this += RHS;
|
||||
}
|
||||
|
||||
SmallString &operator+=(const char *RHS) {
|
||||
this->append(RHS, RHS+strlen(RHS));
|
||||
return *this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user