[Win][MiniBrowser] Remove gMainWindow global variable
Created attachment 342107 [details] Patch
Comment on attachment 342107 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=342107&action=review > Tools/MiniBrowser/win/Common.cpp:139 > + int strLen = GetWindowText(GetDlgItem(hDlg, IDC_AUTH_USER), str, 256); Can we use WTF_ARRAY_LENGTH or sizeof(str) / sizeof(*str) or std::size instead of hard-coding 256 twice? > Tools/MiniBrowser/win/Common.cpp:143 > + strLen = GetWindowText(GetDlgItem(hDlg, IDC_AUTH_PASSWORD), str, 256); Ditto.
Thank you very much! I will fix them.
Created attachment 342124 [details] Patch
Committed r232574: <https://trac.webkit.org/changeset/232574>
<rdar://problem/40882765>