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

Unified Diff: compiled/String.h

Issue 29411657: Noissue - [emscripten] Address compiler warnings (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore
Patch Set: Created April 13, 2017, 3:46 p.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
« compile ('K') | « compile ('k') | compiled/StringMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/String.h
===================================================================
--- a/compiled/String.h
+++ b/compiled/String.h
@@ -326,23 +326,23 @@ public:
~OwnedString()
{
if (mBuf)
delete[] mBuf;
}
OwnedString& operator=(const String& str)
{
- *this = std::move(OwnedString(str));
+ *this = OwnedString(str);
return *this;
}
OwnedString& operator=(const OwnedString& str)
{
- *this = std::move(OwnedString(str));
+ *this = OwnedString(str);
return *this;
}
OwnedString& operator=(OwnedString&& str)
{
std::swap(mBuf, str.mBuf);
std::swap(mLen, str.mLen);
return *this;
« compile ('K') | « compile ('k') | compiled/StringMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld