Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/String.h

Issue 29587914: Issue 5142 - Convert Element Hiding to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Reworked after review. Created Jan. 16, 2018, 2:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiled/String.h
===================================================================
--- a/compiled/String.h
+++ b/compiled/String.h
@@ -319,16 +319,21 @@
}
~OwnedString()
{
if (mBuf)
delete[] mBuf;
}
+ void reset(const String& str)
+ {
+ *this = str;
+ }
+
OwnedString& operator=(const String& str)
{
*this = OwnedString(str);
return *this;
}
OwnedString& operator=(const OwnedString& str)
{
« compiled/ElemHide.cpp ('K') | « compiled/Map.h ('k') | compiled/StringMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld