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

Unified Diff: Source/platform/text/LocaleICU.cpp

Issue 90243005: Have Locale::create() take a String in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | « no previous file | Source/platform/text/LocaleMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/text/LocaleICU.cpp
diff --git a/Source/platform/text/LocaleICU.cpp b/Source/platform/text/LocaleICU.cpp
index a5985dc6b2eb893babb964e88b0d952f73850124..75a91d0b167f3307a1dd72a9d93d7cfb97ec5029 100644
--- a/Source/platform/text/LocaleICU.cpp
+++ b/Source/platform/text/LocaleICU.cpp
@@ -44,9 +44,9 @@ using namespace std;
namespace WebCore {
-PassOwnPtr<Locale> Locale::create(const AtomicString& locale)
+PassOwnPtr<Locale> Locale::create(const String& locale)
{
- return LocaleICU::create(locale.string().utf8().data());
+ return LocaleICU::create(locale.utf8().data());
}
LocaleICU::LocaleICU(const char* locale)
« no previous file with comments | « no previous file | Source/platform/text/LocaleMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698