Changeset 239092 in webkit


Ignore:
Timestamp:
Dec 11, 2018 5:15:55 PM (5 years ago)
Author:
Fujii Hironori
Message:

[Win][Clang] Fix warning -Wmissing-field-initializers
https://bugs.webkit.org/show_bug.cgi?id=192584

Reviewed by Yusuke Suzuki.

Initialize a struct with '{ }' instead of '= {0}'.

Source/WebCore:

No new tests, no behavior changes.

  • platform/graphics/win/FontCacheWin.cpp:

(WebCore::FontCache::lastResortFallbackFont):

  • platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:

(WebCore::MediaPlayerPrivateFullscreenWindow::createWindow):

  • platform/win/ClipboardUtilitiesWin.cpp:

(WebCore::setFileDescriptorData):
(WebCore::setFileContentData):
(WebCore::setUCharData):
(WebCore::setUtf8Data):
(WebCore::setCFData):

  • platform/win/CursorWin.cpp:

(WebCore::createSharedCursor):

  • platform/win/DefWndProcWindowClass.cpp:

(WebCore::registerClass):

  • platform/win/DragImageWin.cpp:

(WebCore::createDragImageIconForCachedImageFilename):

  • platform/win/PasteboardWin.cpp:

(WebCore::writeURL):
(WebCore::Pasteboard::writeString):
(WebCore::Pasteboard::writeRangeToDataObject):
(WebCore::Pasteboard::writePlainTextToDataObject):
(WebCore::writeFileToDataObject):
(WebCore::Pasteboard::writeMarkup):

  • platform/win/PopupMenuWin.cpp:

(WebCore::PopupMenuWin::show):

  • platform/win/SSLKeyGeneratorWin.cpp:

(WebCore::WebCore::signedPublicKeyAndChallengeString):

Source/WebKit:

  • UIProcess/Launcher/win/ProcessLauncherWin.cpp:

(WebKit::ProcessLauncher::launchProcess):

  • UIProcess/win/WebPopupMenuProxyWin.cpp:

(WebKit::WebPopupMenuProxyWin::showPopupMenu):

  • UIProcess/win/WebView.cpp:

(WebKit::WebView::initializeToolTipWindow):
(WebKit::WebView::setToolTip):

Source/WebKitLegacy/win:

  • WebKitMessageLoop.cpp:

(WebKitMessageLoop::run):

  • WebView.cpp:

(WebView::onMenuCommand):
(WebView::gesture):
(WebView::setShouldInvertColors):
(WebView::initializeToolTipWindow):
(WebView::setToolTip):
(WebView::fullScreenClientForceRepaint):

Tools:

  • DumpRenderTree/win/DumpRenderTree.cpp:

(runTest):

  • DumpRenderTree/win/EventSender.cpp:

(makeMsg):
(replaySavedEvents):
(beginDragWithFilesCallback):

  • DumpRenderTree/win/PixelDumpSupportWin.cpp:

(createBitmapContextFromWebView):

  • MiniBrowser/win/WebKitLegacyBrowserWindow.cpp:

(updateMenuItemForHistoryItem):

  • MiniBrowser/win/WinMain.cpp:

(wWinMain):

  • TestWebKitAPI/win/HostWindow.cpp:

(TestWebKitAPI::HostWindow::clientRect const):
(TestWebKitAPI::HostWindow::registerWindowClass):

  • TestWebKitAPI/win/PlatformWebViewWin.cpp:

(TestWebKitAPI::PlatformWebView::registerWindowClass):

  • WebKitTestRunner/win/PlatformWebViewWin.cpp:

(WTR::registerWindowClass):
(WTR::PlatformWebView::windowFrame):
(WTR::PlatformWebView::windowSnapshotImage):

Location:
trunk
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r239091 r239092  
     12018-12-11  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] Fix warning -Wmissing-field-initializers
     4        https://bugs.webkit.org/show_bug.cgi?id=192584
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Initialize a struct with '{ }' instead of '= {0}'.
     9
     10        No new tests, no behavior changes.
     11
     12        * platform/graphics/win/FontCacheWin.cpp:
     13        (WebCore::FontCache::lastResortFallbackFont):
     14        * platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp:
     15        (WebCore::MediaPlayerPrivateFullscreenWindow::createWindow):
     16        * platform/win/ClipboardUtilitiesWin.cpp:
     17        (WebCore::setFileDescriptorData):
     18        (WebCore::setFileContentData):
     19        (WebCore::setUCharData):
     20        (WebCore::setUtf8Data):
     21        (WebCore::setCFData):
     22        * platform/win/CursorWin.cpp:
     23        (WebCore::createSharedCursor):
     24        * platform/win/DefWndProcWindowClass.cpp:
     25        (WebCore::registerClass):
     26        * platform/win/DragImageWin.cpp:
     27        (WebCore::createDragImageIconForCachedImageFilename):
     28        * platform/win/PasteboardWin.cpp:
     29        (WebCore::writeURL):
     30        (WebCore::Pasteboard::writeString):
     31        (WebCore::Pasteboard::writeRangeToDataObject):
     32        (WebCore::Pasteboard::writePlainTextToDataObject):
     33        (WebCore::writeFileToDataObject):
     34        (WebCore::Pasteboard::writeMarkup):
     35        * platform/win/PopupMenuWin.cpp:
     36        (WebCore::PopupMenuWin::show):
     37        * platform/win/SSLKeyGeneratorWin.cpp:
     38        (WebCore::WebCore::signedPublicKeyAndChallengeString):
     39
    1402018-12-11  Jer Noble  <jer.noble@apple.com>
    241
  • trunk/Source/WebCore/platform/graphics/win/FontCacheWin.cpp

    r238298 r239092  
    375375
    376376    // Fall back to Non-client metrics fonts.
    377     NONCLIENTMETRICS nonClientMetrics = {0};
     377    NONCLIENTMETRICS nonClientMetrics { };
    378378    nonClientMetrics.cbSize = sizeof(nonClientMetrics);
    379379    if (SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(nonClientMetrics), &nonClientMetrics, 0)) {
  • trunk/Source/WebCore/platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp

    r216702 r239092  
    6262    static LPCWSTR windowClassName = L"MediaPlayerPrivateFullscreenWindowClass";
    6363    if (!windowAtom) {
    64         WNDCLASSEX wcex = {0};
     64        WNDCLASSEX wcex { };
    6565        wcex.cbSize = sizeof(wcex);
    6666        wcex.style = CS_HREDRAW | CS_VREDRAW;
     
    7373    ASSERT(!m_hwnd);
    7474
    75     MONITORINFO mi = {0};
     75    MONITORINFO mi { };
    7676    mi.cbSize = sizeof(MONITORINFO);
    7777    if (!GetMonitorInfo(MonitorFromWindow(parentHwnd, MONITOR_DEFAULTTONEAREST), &mi))
  • trunk/Source/WebCore/platform/win/ClipboardUtilitiesWin.cpp

    r238771 r239092  
    425425    String pathname = passedPathname;
    426426
    427     STGMEDIUM medium = { 0 };
     427    STGMEDIUM medium { };
    428428    medium.tymed = TYMED_HGLOBAL;
    429429
     
    447447void setFileContentData(IDataObject* dataObject, int size, void* dataBlob)
    448448{
    449     STGMEDIUM medium = { 0 };
     449    STGMEDIUM medium { };
    450450    medium.tymed = TYMED_HGLOBAL;
    451451
     
    755755void setUCharData(IDataObject* data, FORMATETC* format, const Vector<String>& dataStrings)
    756756{
    757     STGMEDIUM medium = {0};
     757    STGMEDIUM medium { };
    758758    medium.tymed = TYMED_HGLOBAL;
    759759
     
    767767void setUtf8Data(IDataObject* data, FORMATETC* format, const Vector<String>& dataStrings)
    768768{
    769     STGMEDIUM medium = {0};
     769    STGMEDIUM medium { };
    770770    medium.tymed = TYMED_HGLOBAL;
    771771
     
    786786void setCFData(IDataObject* data, FORMATETC* format, const Vector<String>& dataStrings)
    787787{
    788     STGMEDIUM medium = {0};
     788    STGMEDIUM medium { };
    789789    medium.tymed = TYMED_HGLOBAL;
    790790
  • trunk/Source/WebCore/platform/win/CursorWin.cpp

    r217406 r239092  
    112112        SelectObject(xorMaskDC.get(), oldXorMask);
    113113
    114         ICONINFO icon = {0};
     114        ICONINFO icon { };
    115115        icon.fIcon = FALSE;
    116116        icon.xHotspot = effectiveHotSpot.x();
  • trunk/Source/WebCore/platform/win/DefWndProcWindowClass.cpp

    r84635 r239092  
    3636static ATOM registerClass()
    3737{
    38     WNDCLASSW wndClass = {0};
     38    WNDCLASSW wndClass { };
    3939    wndClass.lpszClassName = className;
    4040    wndClass.lpfnWndProc = ::DefWindowProcW;
  • trunk/Source/WebCore/platform/win/DragImageWin.cpp

    r238771 r239092  
    7474DragImageRef createDragImageIconForCachedImageFilename(const String& filename)
    7575{
    76     SHFILEINFO shfi = {0};
     76    SHFILEINFO shfi { };
    7777    String fname = filename;
    7878    if (FAILED(SHGetFileInfo(stringToNullTerminatedWChar(fname).data(), FILE_ATTRIBUTE_NORMAL, &shfi, sizeof(shfi), SHGFI_ICON | SHGFI_USEFILEATTRIBUTES)))
  • trunk/Source/WebCore/platform/win/PasteboardWin.cpp

    r238771 r239092  
    374374    }
    375375
    376     STGMEDIUM medium = {0};
     376    STGMEDIUM medium { };
    377377    medium.tymed = TYMED_HGLOBAL;
    378378
     
    418418
    419419    if (winType == ClipboardDataTypeText) {
    420         STGMEDIUM medium = {0};
     420        STGMEDIUM medium { };
    421421        medium.tymed = TYMED_HGLOBAL;
    422422        medium.hGlobal = createGlobalData(data);
     
    441441        return;
    442442
    443     STGMEDIUM medium = {0};
     443    STGMEDIUM medium { };
    444444    medium.tymed = TYMED_HGLOBAL;
    445445
     
    506506        return;
    507507
    508     STGMEDIUM medium = {0};
     508    STGMEDIUM medium { };
    509509    medium.tymed = TYMED_HGLOBAL;
    510510
     
    607607    HRESULT hr = S_OK;
    608608    FORMATETC* fe;
    609     STGMEDIUM medium = {0};
     609    STGMEDIUM medium { };
    610610    medium.tymed = TYMED_HGLOBAL;
    611611
     
    10641064    markupToCFHTML(markup, "", data);
    10651065
    1066     STGMEDIUM medium = {0};
     1066    STGMEDIUM medium { };
    10671067    medium.tymed = TYMED_HGLOBAL;
    10681068
  • trunk/Source/WebCore/platform/win/PopupMenuWin.cpp

    r234808 r239092  
    162162
    163163    if (shouldAnimate) {
    164         RECT viewRect = {0};
     164        RECT viewRect { };
    165165        ::GetWindowRect(hostWindow, &viewRect);
    166166        if (!::IsRectEmpty(&viewRect))
  • trunk/Source/WebCore/platform/win/SSLKeyGeneratorWin.cpp

    r226205 r239092  
    6161            break;
    6262
    63         CERT_KEYGEN_REQUEST_INFO requestInfo = { 0 };
     63        CERT_KEYGEN_REQUEST_INFO requestInfo { };
    6464        requestInfo.dwVersion = CERT_KEYGEN_REQUEST_V1;
    6565        requestInfo.pwszChallengeString = L"";
     
    7272        requestInfo.pwszChallengeString = const_cast<wchar_t*>(localChallengeWide.data());
    7373
    74         CRYPT_ALGORITHM_IDENTIFIER signAlgo = { 0 };
     74        CRYPT_ALGORITHM_IDENTIFIER signAlgo { };
    7575        signAlgo.pszObjId = szOID_RSA_SHA1RSA;
    7676
  • trunk/Source/WebKit/ChangeLog

    r239080 r239092  
     12018-12-11  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] Fix warning -Wmissing-field-initializers
     4        https://bugs.webkit.org/show_bug.cgi?id=192584
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Initialize a struct with '{ }' instead of '= {0}'.
     9
     10        * UIProcess/Launcher/win/ProcessLauncherWin.cpp:
     11        (WebKit::ProcessLauncher::launchProcess):
     12        * UIProcess/win/WebPopupMenuProxyWin.cpp:
     13        (WebKit::WebPopupMenuProxyWin::showPopupMenu):
     14        * UIProcess/win/WebView.cpp:
     15        (WebKit::WebView::initializeToolTipWindow):
     16        (WebKit::WebView::setToolTip):
     17
    1182018-12-11  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebKit/UIProcess/Launcher/win/ProcessLauncherWin.cpp

    r236690 r239092  
    8888    auto commandLine = stringToNullTerminatedWChar(commandLineBuilder.toString());
    8989
    90     STARTUPINFO startupInfo = { 0 };
     90    STARTUPINFO startupInfo { };
    9191    startupInfo.cb = sizeof(startupInfo);
    9292    startupInfo.dwFlags = STARTF_USESHOWWINDOW;
    9393    startupInfo.wShowWindow = SW_HIDE;
    94     PROCESS_INFORMATION processInformation = { 0 };
     94    PROCESS_INFORMATION processInformation { };
    9595    BOOL result = ::CreateProcess(0, commandLine.data(), 0, 0, true, 0, 0, 0, &startupInfo, &processInformation);
    9696
  • trunk/Source/WebKit/UIProcess/win/WebPopupMenuProxyWin.cpp

    r235265 r239092  
    219219
    220220    if (shouldAnimate) {
    221         RECT viewRect = {0};
     221        RECT viewRect { };
    222222        ::GetWindowRect(hostWindow, &viewRect);
    223223
  • trunk/Source/WebKit/UIProcess/win/WebView.cpp

    r235265 r239092  
    654654        return;
    655655
    656     TOOLINFO info = { 0 };
     656    TOOLINFO info { };
    657657    info.cbSize = sizeof(info);
    658658    info.uFlags = TTF_IDISHWND | TTF_SUBCLASS;
     
    872872
    873873    if (!toolTip.isEmpty()) {
    874         TOOLINFO info = { 0 };
     874        TOOLINFO info { };
    875875        info.cbSize = sizeof(info);
    876876        info.uFlags = TTF_IDISHWND;
  • trunk/Source/WebKitLegacy/win/ChangeLog

    r238894 r239092  
     12018-12-11  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] Fix warning -Wmissing-field-initializers
     4        https://bugs.webkit.org/show_bug.cgi?id=192584
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Initialize a struct with '{ }' instead of '= {0}'.
     9
     10        * WebKitMessageLoop.cpp:
     11        (WebKitMessageLoop::run):
     12        * WebView.cpp:
     13        (WebView::onMenuCommand):
     14        (WebView::gesture):
     15        (WebView::setShouldInvertColors):
     16        (WebView::initializeToolTipWindow):
     17        (WebView::setToolTip):
     18        (WebView::fullScreenClientForceRepaint):
     19
    1202018-12-05  Wenson Hsieh  <wenson_hsieh@apple.com>
    221
  • trunk/Source/WebKitLegacy/win/WebKitMessageLoop.cpp

    r229048 r239092  
    8585HRESULT WebKitMessageLoop::run(_In_ HACCEL hAccelTable)
    8686{
    87     MSG msg = { 0 };
     87    MSG msg { };
    8888
    8989    while (GetMessage(&msg, 0, 0, 0)) {
  • trunk/Source/WebKitLegacy/win/WebView.cpp

    r238775 r239092  
    17861786    unsigned index = static_cast<unsigned>(wParam);
    17871787
    1788     MENUITEMINFO menuItemInfo = { 0 };
     1788    MENUITEMINFO menuItemInfo { };
    17891789    menuItemInfo.cbSize = sizeof(menuItemInfo);
    17901790    menuItemInfo.fMask = MIIM_STRING;
     
    19981998    HGESTUREINFO gestureHandle = reinterpret_cast<HGESTUREINFO>(lParam);
    19991999   
    2000     GESTUREINFO gi = {0};
     2000    GESTUREINFO gi { };
    20012001    gi.cbSize = sizeof(GESTUREINFO);
    20022002
     
    24852485#endif
    24862486
    2487     RECT windowRect = {0};
     2487    RECT windowRect { };
    24882488    frameRect(&windowRect);
    24892489
     
    31923192        return;
    31933193
    3194     TOOLINFO info = {0};
     3194    TOOLINFO info { };
    31953195    info.cbSize = sizeof(info);
    31963196    info.uFlags = TTF_IDISHWND | TTF_SUBCLASS ;
     
    32143214
    32153215    if (!m_toolTip.isEmpty()) {
    3216         TOOLINFO info = {0};
     3216        TOOLINFO info { };
    32173217        info.cbSize = sizeof(info);
    32183218        info.uFlags = TTF_IDISHWND;
     
    75777577{
    75787578    ASSERT(m_fullscreenController);
    7579     RECT windowRect = {0};
     7579    RECT windowRect { };
    75807580    frameRect(&windowRect);
    75817581    repaint(windowRect, true /*contentChanged*/, true /*immediate*/, false /*contentOnly*/);
  • trunk/Tools/ChangeLog

    r239080 r239092  
     12018-12-11  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win][Clang] Fix warning -Wmissing-field-initializers
     4        https://bugs.webkit.org/show_bug.cgi?id=192584
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        Initialize a struct with '{ }' instead of '= {0}'.
     9
     10        * DumpRenderTree/win/DumpRenderTree.cpp:
     11        (runTest):
     12        * DumpRenderTree/win/EventSender.cpp:
     13        (makeMsg):
     14        (replaySavedEvents):
     15        (beginDragWithFilesCallback):
     16        * DumpRenderTree/win/PixelDumpSupportWin.cpp:
     17        (createBitmapContextFromWebView):
     18        * MiniBrowser/win/WebKitLegacyBrowserWindow.cpp:
     19        (updateMenuItemForHistoryItem):
     20        * MiniBrowser/win/WinMain.cpp:
     21        (wWinMain):
     22        * TestWebKitAPI/win/HostWindow.cpp:
     23        (TestWebKitAPI::HostWindow::clientRect const):
     24        (TestWebKitAPI::HostWindow::registerWindowClass):
     25        * TestWebKitAPI/win/PlatformWebViewWin.cpp:
     26        (TestWebKitAPI::PlatformWebView::registerWindowClass):
     27        * WebKitTestRunner/win/PlatformWebViewWin.cpp:
     28        (WTR::registerWindowClass):
     29        (WTR::PlatformWebView::windowFrame):
     30        (WTR::PlatformWebView::windowSnapshotImage):
     31
    1322018-12-11  Chris Dumez  <cdumez@apple.com>
    233
  • trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp

    r237099 r239092  
    12321232    workQueue.setFrozen(false);
    12331233
    1234     MSG msg = { 0 };
     1234    MSG msg { };
    12351235    HWND hostWindow;
    12361236    webView->hostWindow(&hostWindow);
  • trunk/Tools/DumpRenderTree/win/EventSender.cpp

    r230355 r239092  
    121121static MSG makeMsg(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
    122122{
    123     MSG result = {0};
     123    MSG result { };
    124124    result.hwnd = hwnd;
    125125    result.message = message;
     
    363363    replayingSavedEvents = true;
    364364 
    365     MSG msg = { 0 };
     365    MSG msg { };
    366366
    367367    while (startOfQueue < endOfQueue && !msgQueue[startOfQueue].delay) {
     
    697697    files.append(0);
    698698
    699     STGMEDIUM hDropMedium = {0};
     699    STGMEDIUM hDropMedium { };
    700700    hDropMedium.tymed = TYMED_HGLOBAL;
    701701    SIZE_T dropFilesSize = sizeof(DROPFILES) + (sizeof(WCHAR) * files.size());
     
    714714    GlobalUnlock(hDropMedium.hGlobal);
    715715
    716     STGMEDIUM hFileNameMedium = {0};
     716    STGMEDIUM hFileNameMedium { };
    717717    hFileNameMedium.tymed = TYMED_HGLOBAL;
    718718    SIZE_T hFileNameSize = sizeof(WCHAR) * files.size();
     
    926926
    927927    if (!eventSenderClass) {
    928         JSClassDefinition classDefinition = {0};
     928        JSClassDefinition classDefinition { };
    929929        classDefinition.staticFunctions = staticFunctions;
    930930        classDefinition.staticValues = staticValues;
  • trunk/Tools/DumpRenderTree/win/PixelDumpSupportWin.cpp

    r237622 r239092  
    6363        return nullptr;
    6464
    65     BITMAPINFO bmp = {0};
     65    BITMAPINFO bmp { };
    6666    bmp.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
    6767    bmp.bmiHeader.biWidth = frame.right - frame.left;
     
    8080    SendMessage(webViewWindow, WM_PRINT, reinterpret_cast<WPARAM>(memoryDC.get()), PRF_CLIENT | PRF_CHILDREN | PRF_OWNED);
    8181
    82     BITMAP info = {0};
     82    BITMAP info { };
    8383    GetObject(bitmap, sizeof(info), &info);
    8484    ASSERT(info.bmBitsPixel == 32);
  • trunk/Tools/MiniBrowser/win/WebKitLegacyBrowserWindow.cpp

    r238051 r239092  
    330330    UINT menuID = IDM_HISTORY_LINK0 + currentHistoryItem;
    331331
    332     MENUITEMINFO menuItemInfo = { 0 };
     332    MENUITEMINFO menuItemInfo { };
    333333    menuItemInfo.cbSize = sizeof(MENUITEMINFO);
    334334    menuItemInfo.fMask = MIIM_TYPE;
  • trunk/Tools/MiniBrowser/win/WinMain.cpp

    r232862 r239092  
    4242#endif
    4343
    44     MSG msg = {0};
     44    MSG msg { };
    4545    HACCEL hAccelTable;
    4646
  • trunk/Tools/TestWebKitAPI/win/HostWindow.cpp

    r95955 r239092  
    5151RECT HostWindow::clientRect() const
    5252{
    53     RECT rect = {0};
     53    RECT rect { };
    5454    if (!::GetClientRect(m_window, &rect)) {
    55         RECT emptyRect = {0};
     55        RECT emptyRect { };
    5656        return emptyRect;
    5757    }
     
    6666    initialized = true;
    6767
    68     WNDCLASSEXW wndClass = {0};
     68    WNDCLASSEXW wndClass { };
    6969    wndClass.cbSize = sizeof(wndClass);
    7070    wndClass.style = CS_HREDRAW | CS_VREDRAW;
  • trunk/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp

    r230744 r239092  
    4848    initialized = true;
    4949
    50     WNDCLASSEXW wndClass = {0};
     50    WNDCLASSEXW wndClass { };
    5151    wndClass.cbSize = sizeof(wndClass);
    5252    wndClass.style = CS_HREDRAW | CS_VREDRAW;
  • trunk/Tools/WebKitTestRunner/win/PlatformWebViewWin.cpp

    r238939 r239092  
    5050    initialized = true;
    5151
    52     WNDCLASSEXW wndClass = {0};
     52    WNDCLASSEXW wndClass { };
    5353    wndClass.cbSize = sizeof(wndClass);
    5454    wndClass.style = CS_HREDRAW | CS_VREDRAW;
     
    118118WKRect PlatformWebView::windowFrame()
    119119{
    120     WKRect wkFrame = {0};
     120    WKRect wkFrame { };
    121121    RECT r;
    122122
     
    204204    auto memoryDC = adoptGDIObject(::CreateCompatibleDC(windowDC));
    205205
    206     BITMAPINFO bitmapInfo = {0};
     206    BITMAPINFO bitmapInfo { };
    207207    WKRect wkFrame = windowFrame();
    208208    bitmapInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
     
    231231        SRCCOPY);
    232232
    233     BITMAP bitmapTag = {0};
     233    BITMAP bitmapTag { };
    234234    GetObject(bitmap.get(), sizeof(bitmapTag), &bitmapTag);
    235235    ASSERT(bitmapTag.bmBitsPixel == 32);
Note: See TracChangeset for help on using the changeset viewer.