mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
refactor: remove unnecessary const_cast (#46543)
refactor: remove unnecessary const_cast
unnecessary since July 2019 in 50b9c70
This commit is contained in:
@@ -28,7 +28,7 @@ content::WebUI::TypeID ElectronWebUIControllerFactory::GetWebUIType(
|
||||
if (const std::string_view host = url.host_piece();
|
||||
host == chrome::kChromeUIDevToolsHost ||
|
||||
host == chrome::kChromeUIAccessibilityHost) {
|
||||
return const_cast<ElectronWebUIControllerFactory*>(this);
|
||||
return this;
|
||||
}
|
||||
|
||||
return content::WebUI::kNoWebUI;
|
||||
|
||||
Reference in New Issue
Block a user