Changeset 107440 in webkit
- Timestamp:
- Feb 10, 2012 2:17:30 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r107438 r107440 1 2012-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 1 16 2012-02-10 Anders Carlsson <andersca@apple.com> 2 17 -
trunk/Source/WebCore/platform/DefaultLocalizationStrategy.cpp
r107288 r107440 769 769 770 770 #if PLATFORM(IOS) 771 String DefaultLocalizationStrategy::htmlSelectMultipleItems( int count)771 String DefaultLocalizationStrategy::htmlSelectMultipleItems(size_t count) 772 772 { 773 773 switch (count) { … … 777 777 return WEB_UI_STRING("1 Item", "Present the element <select multiple> when a single <option> is selected (iOS only)"); 778 778 default: 779 return formatLocalizedString(WEB_UI_STRING("% dItems", "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); 780 780 } 781 781 } -
trunk/Source/WebCore/platform/DefaultLocalizationStrategy.h
r102086 r107440 171 171 virtual String keygenKeychainItemName(const String& host); 172 172 #if PLATFORM(IOS) 173 virtual String htmlSelectMultipleItems( int);173 virtual String htmlSelectMultipleItems(size_t); 174 174 #endif // PLATFORM(IOS) 175 175 #endif // PLATFORM(MAC)
Note: See TracChangeset
for help on using the changeset viewer.