mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace macros with C++17 features (see issue #3362)
- Convert ALLOW_UNUSED_LOCAL to [[maybe_unused]] - Convert WARN_UNUSED_RESULT to [[nodiscard]]
This commit is contained in:
@@ -722,8 +722,7 @@ void RootWindowWin::OnSize(bool minimized) {
|
||||
SWP_NOZORDER);
|
||||
}
|
||||
|
||||
BOOL result = EndDeferWindowPos(hdwp);
|
||||
ALLOW_UNUSED_LOCAL(result);
|
||||
[[maybe_unused]] BOOL result = EndDeferWindowPos(hdwp);
|
||||
DCHECK(result);
|
||||
} else if (browser_window_) {
|
||||
// Size the browser window to the whole client area.
|
||||
@@ -1164,9 +1163,8 @@ void UnSubclassWindow(HWND hWnd) {
|
||||
LONG_PTR hParentWndProc =
|
||||
reinterpret_cast<LONG_PTR>(::GetPropW(hWnd, kParentWndProc));
|
||||
if (hParentWndProc) {
|
||||
LONG_PTR hPreviousWndProc =
|
||||
[[maybe_unused]] LONG_PTR hPreviousWndProc =
|
||||
SetWindowLongPtr(hWnd, GWLP_WNDPROC, hParentWndProc);
|
||||
ALLOW_UNUSED_LOCAL(hPreviousWndProc);
|
||||
DCHECK_EQ(hPreviousWndProc,
|
||||
reinterpret_cast<LONG_PTR>(SubclassedWindowProc));
|
||||
}
|
||||
|
Reference in New Issue
Block a user