Changeset 107440 in webkit


Ignore:
Timestamp:
Feb 10, 2012 2:17:30 PM (12 years ago)
Author:
benjamin@webkit.org
Message:

DefaultLocalizationStrategy::htmlSelectMultipleItems() should use size_t instead of int
https://bugs.webkit.org/show_bug.cgi?id=78374

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-02-10
Reviewed by Joseph Pecoraro.

The value comes from size_t and is converted to int for no good reason. We should use
size_t.

  • platform/DefaultLocalizationStrategy.cpp:

(WebCore::DefaultLocalizationStrategy::htmlSelectMultipleItems):

  • platform/DefaultLocalizationStrategy.h:

(DefaultLocalizationStrategy):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r107438 r107440  
     12012-02-10  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        DefaultLocalizationStrategy::htmlSelectMultipleItems() should use size_t instead of int
     4        https://bugs.webkit.org/show_bug.cgi?id=78374
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        The value comes from size_t and is converted to int for no good reason. We should use
     9        size_t.
     10
     11        * platform/DefaultLocalizationStrategy.cpp:
     12        (WebCore::DefaultLocalizationStrategy::htmlSelectMultipleItems):
     13        * platform/DefaultLocalizationStrategy.h:
     14        (DefaultLocalizationStrategy):
     15
    1162012-02-10  Anders Carlsson  <andersca@apple.com>
    217
  • trunk/Source/WebCore/platform/DefaultLocalizationStrategy.cpp

    r107288 r107440  
    769769
    770770#if PLATFORM(IOS)
    771 String DefaultLocalizationStrategy::htmlSelectMultipleItems(int count)
     771String DefaultLocalizationStrategy::htmlSelectMultipleItems(size_t count)
    772772{
    773773    switch (count) {
     
    777777        return WEB_UI_STRING("1 Item", "Present the element <select multiple> when a single <option> is selected (iOS only)");
    778778    default:
    779         return formatLocalizedString(WEB_UI_STRING("%d Items", "Present the number of selected <option> items in a <select multiple> element (iOS only)"), count);
     779        return formatLocalizedString(WEB_UI_STRING("%zu Items", "Present the number of selected <option> items in a <select multiple> element (iOS only)"), count);
    780780    }
    781781}
  • trunk/Source/WebCore/platform/DefaultLocalizationStrategy.h

    r102086 r107440  
    171171    virtual String keygenKeychainItemName(const String& host);
    172172#if PLATFORM(IOS)
    173     virtual String htmlSelectMultipleItems(int);
     173    virtual String htmlSelectMultipleItems(size_t);
    174174#endif // PLATFORM(IOS)
    175175#endif // PLATFORM(MAC)
Note: See TracChangeset for help on using the changeset viewer.