mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
add an operator= to assign to smallstring.
llvm-svn: 59715
This commit is contained in:
parent
c4efcfdcd6
commit
527a103e8e
@ -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…
Reference in New Issue
Block a user