Changeset 150930 in webkit
- Timestamp:
- May 29, 2013 2:28:28 PM (11 years ago)
- Location:
- trunk/Source/WebKit/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/win/ChangeLog
r150852 r150930 1 2013-05-29 Brent Fulgham <bfulgham@apple.com> 2 3 [Windows] Be consistent with allocation/deallocation behavior 4 https://bugs.webkit.org/show_bug.cgi?id=116998 5 6 Reviewed by Anders Carlsson. 7 8 * WebPreferences.cpp: 9 (WebPreferences::setStringValue): Switch from using _wcsdup and 10 CFStringCreateWithCharactersNoCopy to just use the standard 11 CFStringCreateWithCharacters call. 12 1 13 2013-05-28 Brent Fulgham <bfulgham@apple.com> 2 14 -
trunk/Source/WebKit/win/WebPreferences.cpp
r149716 r150930 355 355 return; 356 356 357 RetainPtr<CFStringRef> valueRef = adoptCF(CFStringCreateWithCharacters NoCopy(0, (UniChar*)_wcsdup(value), (CFIndex)wcslen(value), kCFAllocatorMalloc));357 RetainPtr<CFStringRef> valueRef = adoptCF(CFStringCreateWithCharacters(0, reinterpret_cast<const UniChar*>(value), static_cast<CFIndex>(wcslen(value)))); 358 358 setValueForKey(key, valueRef.get()); 359 359
Note: See TracChangeset
for help on using the changeset viewer.