Apply suggestions from code review

This commit is contained in:
Vadim Zeitlin
2021-02-05 22:03:35 +01:00
committed by Tobias Taschner
parent d11ab7f751
commit e88b55bfe1
3 changed files with 24 additions and 20 deletions

View File

@@ -78,7 +78,7 @@ wxWebViewZoom wxWebView::GetZoom() const
}
// to shut up compilers, this can never be reached logically
wxASSERT(false);
wxFAIL_MSG("unreachable");
return wxWEBVIEW_ZOOM_MEDIUM;
}
@@ -106,9 +106,6 @@ void wxWebView::SetZoom(wxWebViewZoom zoom)
case wxWEBVIEW_ZOOM_LARGEST:
SetZoomFactor(1.6f);
break;
default:
wxASSERT(false);
}
}