Changeset 235966 in webkit
- Timestamp:
- Sep 12, 2018 7:14:05 PM (6 years ago)
- Location:
- trunk/Source/WebKitLegacy/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/win/ChangeLog
r235938 r235966 1 2018-09-12 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang][WebKitLegacy] Fix compilation errors and warnings of WebPreferences.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=189538 5 6 Reviewed by Per Arne Vollan. 7 8 * WebPreferences.cpp: 9 Changed the type of CFNumberTraits::Type from unsigned int to CFNumberType. 10 (WebPreferences::migrateWebKitPreferencesToCFPreferences): 11 Apply static_cast to the result of OR-ed CFPropertyListFormat. 12 (WebPreferences::screenFontSubstitutionEnabled): 13 Assign false to the content of the out variable 'enabled', not assigning 0 to the variable. 14 1 15 2018-09-12 Fujii Hironori <Hironori.Fujii@sony.com> 2 16 -
trunk/Source/WebKitLegacy/win/WebPreferences.cpp
r235539 r235966 62 62 } 63 63 64 template<typename NumberType> struct CFNumberTraits { static const unsignedType; };65 template<> struct CFNumberTraits<int> { static const unsignedType = kCFNumberSInt32Type; };66 template<> struct CFNumberTraits<LONGLONG> { static const unsignedType = kCFNumberLongLongType; };67 template<> struct CFNumberTraits<float> { static const unsignedType = kCFNumberFloat32Type; };64 template<typename NumberType> struct CFNumberTraits { static const CFNumberType Type; }; 65 template<> struct CFNumberTraits<int> { static const CFNumberType Type = kCFNumberSInt32Type; }; 66 template<> struct CFNumberTraits<LONGLONG> { static const CFNumberType Type = kCFNumberLongLongType; }; 67 template<> struct CFNumberTraits<float> { static const CFNumberType Type = kCFNumberFloat32Type; }; 68 68 69 69 template<typename NumberType> … … 516 516 return; 517 517 518 CFPropertyListFormat format = kCFPropertyListBinaryFormat_v1_0 | kCFPropertyListXMLFormat_v1_0;518 auto format = static_cast<CFPropertyListFormat>(kCFPropertyListBinaryFormat_v1_0 | kCFPropertyListXMLFormat_v1_0); 519 519 RetainPtr<CFPropertyListRef> plist = adoptCF(CFPropertyListCreateFromStream(0, stream.get(), 0, kCFPropertyListMutableContainersAndLeaves, &format, 0)); 520 520 CFReadStreamClose(stream.get()); … … 1353 1353 if (!enabled) 1354 1354 return E_POINTER; 1355 enabled = false;1355 *enabled = false; 1356 1356 return S_OK; 1357 1357 }
Note: See TracChangeset
for help on using the changeset viewer.