forked from qt-creator/qt-creator
Utils: Add += to SmallString
Actually it is a wrapper to append. Change-Id: I61112a432423d0fcd3917aa28ea4cdc4842d51d4 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -423,6 +423,13 @@ public:
|
|||||||
setSize(newSize);
|
setSize(newSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SmallString &operator+=(SmallStringView string)
|
||||||
|
{
|
||||||
|
append(string);
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
void replace(SmallStringView fromText, SmallStringView toText)
|
void replace(SmallStringView fromText, SmallStringView toText)
|
||||||
{
|
{
|
||||||
if (toText.size() == fromText.size())
|
if (toText.size() == fromText.size())
|
||||||
|
|||||||
Reference in New Issue
Block a user