Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2402)

Unified Diff: Source/platform/exported/WebString.cpp

Issue 141273002: Code problems detected by cppcheck (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/exported/WebHTTPLoadInfo.cpp ('k') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebString.cpp
diff --git a/Source/platform/exported/WebString.cpp b/Source/platform/exported/WebString.cpp
index 789e95d1e588daeadcbd5486ae9c240e0d6ecabd..1dafd9fad2efd1e4677e0786b94c5b9c1e0ec369 100644
--- a/Source/platform/exported/WebString.cpp
+++ b/Source/platform/exported/WebString.cpp
@@ -121,8 +121,8 @@ bool WebString::equals(const WebString& s) const
}
WebString::WebString(const WTF::String& s)
+ : m_private(s.impl())
{
- m_private = s.impl();
}
WebString& WebString::operator=(const WTF::String& s)
« no previous file with comments | « Source/platform/exported/WebHTTPLoadInfo.cpp ('k') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698