Changeset 107065 in webkit


Ignore:
Timestamp:
Feb 8, 2012 3:53:13 AM (12 years ago)
Author:
commit-queue@webkit.org
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.kwon@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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107062 r107065  
     12012-02-08  Kihong Kwon  <kihong.kwon@samsung.com>
     2
     3        [EFL] Using string method instead of char* operation in the platformLanguage().
     4        https://bugs.webkit.org/show_bug.cgi?id=78077
     5
     6        Reviewed by Andreas Kling.
     7
     8        No new tests. Just fix a bug of platformLanguage function.
     9
     10        * platform/efl/LanguageEfl.cpp:
     11        (WebCore::platformLanguage):
     12        Change char* operation to string operation.
     13
    1142012-02-08  Alexander Pavlov  <apavlov@chromium.org>
    215
  • trunk/Source/WebCore/platform/efl/LanguageEfl.cpp

    r105315 r107065  
    4343    if (!localeDefault)
    4444        return String("c");
    45  
    46     char* ptr = strchr(localeDefault, '_');
    4745
    48     if (ptr)
    49         *ptr = '-';
    50  
    51     return String(localeDefault);
     46    return String(localeDefault).replace('_', '-');
    5247}
    5348
Note: See TracChangeset for help on using the changeset viewer.