Changeset 239201 in webkit
- Timestamp:
- Dec 14, 2018 12:09:53 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r239192 r239201 1 2018-12-14 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 [Win][Clang] Fix compilation warnings under Source/WebCore/platform/win 4 https://bugs.webkit.org/show_bug.cgi?id=192693 5 6 Reviewed by Ross Kirsling. 7 8 No new tests, no behavior changes. 9 10 * platform/win/ClipboardUtilitiesWin.cpp: Reordered ClipboardDataItem members to match with the initializer list. 11 * platform/win/CursorWin.cpp: 12 (WebCore::loadCursorByName): Changed the argument type of 'name' to const char*. 13 * platform/win/DefWndProcWindowClass.cpp: 14 (WebCore::defWndProcWindowClassName): Removed an unused variable 'atom'. 15 * platform/win/DragImageWin.cpp: Removed an unused variable 'MinDragLabelWidthBeforeClip'. 16 * platform/win/PasteboardWin.cpp: 17 (WebCore::createGlobalImageFileDescriptor): Removed an unused variable 'hr'. 18 (WebCore::createGlobalHDropContent): Use reinterpret_cast to suppress warning. 19 * platform/win/PlatformMouseEventWin.cpp: 20 (WebCore::PlatformMouseEvent::PlatformMouseEvent): Reordered the initializer list. 21 * platform/win/PopupMenuWin.cpp: 22 (WebCore::PopupMenuWin::paint): Removed an unused variable 'itemCount'. 23 * platform/win/PopupMenuWin.h: Marked override methods with 'override'. 24 * platform/win/SSLKeyGeneratorWin.cpp: 25 (WebCore::getSupportedKeySizes): Removed WebCore namespace prefix in WebCore namespace. 26 (WebCore::signedPublicKeyAndChallengeString): Ditto. 27 * platform/win/SearchPopupMenuDB.cpp: 28 (WebCore::SearchPopupMenuDB::createPreparedStatement): Use ASSERT_UNUSED instead of ASSERT. 29 * platform/win/StructuredExceptionHandlerSuppressor.h: Enclosed m_savedExceptionRegistration with #if defined(_M_IX86). 30 * platform/win/SystemInfo.cpp: 31 (WebCore::osVersionForUAString): Added default case. 32 1 33 2018-12-13 Youenn Fablet <youenn@apple.com> 2 34 -
trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp
r239092 r239201 696 696 697 697 struct ClipboardDataItem { 698 FORMATETC* format; 698 699 GetStringFunction getString; 699 700 SetStringFunction setString; 700 FORMATETC* format;701 701 702 702 ClipboardDataItem(FORMATETC* format, GetStringFunction getString, SetStringFunction setString): format(format), getString(getString), setString(setString) { } -
trunk/Source/WebCore/platform/win/CursorWin.cpp
r239092 r239201 127 127 } 128 128 129 static Ref<SharedCursor> loadCursorByName(c har* name, int x, int y)129 static Ref<SharedCursor> loadCursorByName(const char* name, int x, int y) 130 130 { 131 131 IntPoint hotSpot(x, y); -
trunk/Source/WebCore/platform/win/DefWndProcWindowClass.cpp
r239092 r239201 46 46 const wchar_t* defWndProcWindowClassName() 47 47 { 48 static ATOM atom =registerClass();48 registerClass(); 49 49 return className; 50 50 } -
trunk/Source/WebCore/platform/win/DragImageWin.cpp
r239092 r239201 97 97 const float LabelBorderYOffset = 2; 98 98 99 const float MinDragLabelWidthBeforeClip = 120;100 99 const float MaxDragLabelWidth = 200; 101 100 const float MaxDragLabelStringWidth = (MaxDragLabelWidth - 2 * DragLabelBorderX); -
trunk/Source/WebCore/platform/win/PasteboardWin.cpp
r239092 r239201 889 889 ASSERT(image->image()->data()); 890 890 891 HRESULT hr = S_OK;892 891 String fsPath; 893 892 HGLOBAL memObj = GlobalAlloc(GPTR, sizeof(FILEGROUPDESCRIPTOR)); … … 1016 1015 dropFiles->pFiles = sizeof(DROPFILES); 1017 1016 dropFiles->fWide = TRUE; 1018 wcscpy( (LPWSTR)(dropFiles + 1), filePath);1017 wcscpy(reinterpret_cast<LPWSTR>(dropFiles + 1), filePath); 1019 1018 GlobalUnlock(memObj); 1020 1019 -
trunk/Source/WebCore/platform/win/PlatformMouseEventWin.cpp
r229209 r239201 85 85 , m_globalPosition(globalPositionForEvent(hWnd, lParam)) 86 86 , m_clickCount(0) 87 , m_modifierFlags(wParam) 87 88 , m_didActivateWebView(didActivateWebView) 88 , m_modifierFlags(wParam)89 89 { 90 90 switch (message) { -
trunk/Source/WebCore/platform/win/PopupMenuWin.cpp
r239092 r239201 610 610 GraphicsContext context(m_DC.get()); 611 611 612 int itemCount = client()->listSize(); 613 614 // listRect is the damageRect translated into the coordinates of the entire menu list (which is itemCount * m_itemHeight pixels tall) 612 // listRect is the damageRect translated into the coordinates of the entire menu list (which is listSize * m_itemHeight pixels tall) 615 613 IntRect listRect = damageRect; 616 614 listRect.move(IntSize(0, m_scrollOffset * m_itemHeight)); … … 824 822 } 825 823 826 const int smoothScrollAnimationDuration = 5000;827 828 824 LRESULT PopupMenuWin::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) 829 825 { -
trunk/Source/WebCore/platform/win/PopupMenuWin.h
r239151 r239201 43 43 ~PopupMenuWin(); 44 44 45 v irtual void show(const IntRect&, FrameView*, int index);46 v irtual void hide();47 v irtual void updateFromElement();48 v irtual void disconnectClient();45 void show(const IntRect&, FrameView*, int index) override; 46 void hide() override; 47 void updateFromElement() override; 48 void disconnectClient() override; 49 49 50 50 static LPCWSTR popupClassName(); -
trunk/Source/WebCore/platform/win/SSLKeyGeneratorWin.cpp
r239092 r239201 30 30 namespace WebCore { 31 31 32 void WebCore::getSupportedKeySizes(Vector<String>& v)32 void getSupportedKeySizes(Vector<String>& v) 33 33 { 34 34 // FIXME: Strings should be localizable. … … 36 36 } 37 37 38 String WebCore::signedPublicKeyAndChallengeString(unsigned index, const String& challenge, const URL& url)38 String signedPublicKeyAndChallengeString(unsigned index, const String& challenge, const URL& url) 39 39 { 40 40 String keyString; … … 63 63 CERT_KEYGEN_REQUEST_INFO requestInfo { }; 64 64 requestInfo.dwVersion = CERT_KEYGEN_REQUEST_V1; 65 requestInfo.pwszChallengeString = L"";66 65 requestInfo.SubjectPublicKeyInfo = *pPubInfo; 67 66 … … 73 72 74 73 CRYPT_ALGORITHM_IDENTIFIER signAlgo { }; 75 signAlgo.pszObjId = szOID_RSA_SHA1RSA;74 signAlgo.pszObjId = const_cast<char*>(szOID_RSA_SHA1RSA); 76 75 77 76 DWORD dwEncodedLength; -
trunk/Source/WebCore/platform/win/SearchPopupMenuDB.cpp
r237308 r239201 285 285 auto statement = std::make_unique<SQLiteStatement>(m_database, sql); 286 286 int ret = statement->prepare(); 287 ASSERT (ret == SQLITE_OK);287 ASSERT_UNUSED(ret, ret == SQLITE_OK); 288 288 return statement; 289 289 } -
trunk/Source/WebCore/platform/win/StructuredExceptionHandlerSuppressor.h
r155226 r239201 46 46 47 47 private: 48 #if defined(_M_IX86) 48 49 void* m_savedExceptionRegistration; 50 #endif 49 51 }; 50 52 -
trunk/Source/WebCore/platform/win/SystemInfo.cpp
r173949 r239201 98 98 case WindowsNT4: 99 99 return "WinNT4.0"; 100 default: 101 break; 100 102 } 101 103
Note: See TracChangeset
for help on using the changeset viewer.