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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.cpp

Issue 2658703005: Make WTFString constructor that takes const char* call strlen inline (Closed)
Patch Set: delegate ctor Created 3 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 | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/text/WTFString.cpp
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.cpp b/third_party/WebKit/Source/wtf/text/WTFString.cpp
index bc751f5ab80128e614046bef1ae36b199875752b..22c6d0b4e97461aee4ce87293a11573f2b310e0c 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.cpp
+++ b/third_party/WebKit/Source/wtf/text/WTFString.cpp
@@ -88,15 +88,6 @@ String::String(const char* characters, unsigned length)
length)
: nullptr) {}
-// Construct a string with latin1 data, from a null-terminated source.
-String::String(const LChar* characters)
- : m_impl(characters ? StringImpl::create(characters) : nullptr) {}
-
-String::String(const char* characters)
- : m_impl(characters ? StringImpl::create(
- reinterpret_cast<const LChar*>(characters))
- : nullptr) {}
-
void String::append(const StringView& string) {
if (string.isEmpty())
return;
« no previous file with comments | « third_party/WebKit/Source/wtf/text/WTFString.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698