Title: [107065] trunk/Source/WebCore
- Revision
- 107065
- Author
- commit-qu...@webkit.org
- Date
- 2012-02-08 03:53:13 -0800 (Wed, 08 Feb 2012)
Log Message
[EFL] Using string method instead of char* operation in the platformLanguage().
https://bugs.webkit.org/show_bug.cgi?id=78077
Patch by Kihong Kwon <kihong.k...@samsung.com> on 2012-02-08
Reviewed by Andreas Kling.
No new tests. Just fix a bug of platformLanguage function.
* platform/efl/LanguageEfl.cpp:
(WebCore::platformLanguage):
Change char* operation to string operation.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (107064 => 107065)
--- trunk/Source/WebCore/ChangeLog 2012-02-08 11:40:09 UTC (rev 107064)
+++ trunk/Source/WebCore/ChangeLog 2012-02-08 11:53:13 UTC (rev 107065)
@@ -1,3 +1,16 @@
+2012-02-08 Kihong Kwon <kihong.k...@samsung.com>
+
+ [EFL] Using string method instead of char* operation in the platformLanguage().
+ https://bugs.webkit.org/show_bug.cgi?id=78077
+
+ Reviewed by Andreas Kling.
+
+ No new tests. Just fix a bug of platformLanguage function.
+
+ * platform/efl/LanguageEfl.cpp:
+ (WebCore::platformLanguage):
+ Change char* operation to string operation.
+
2012-02-08 Alexander Pavlov <apav...@chromium.org>
Web Inspector: Touch event emulation fails for iframes
Modified: trunk/Source/WebCore/platform/efl/LanguageEfl.cpp (107064 => 107065)
--- trunk/Source/WebCore/platform/efl/LanguageEfl.cpp 2012-02-08 11:40:09 UTC (rev 107064)
+++ trunk/Source/WebCore/platform/efl/LanguageEfl.cpp 2012-02-08 11:53:13 UTC (rev 107065)
@@ -42,13 +42,8 @@
if (!localeDefault)
return String("c");
-
- char* ptr = strchr(localeDefault, '_');
- if (ptr)
- *ptr = '-';
-
- return String(localeDefault);
+ return String(localeDefault).replace('_', '-');
}
Vector<String> platformUserPreferredLanguages()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes