refactor: remove unnecessary const_cast
(#46543)
refactor: remove unnecessary const_cast
unnecessary since July 2019 in 50b9c70
This commit is contained in:
parent
636cbc19ac
commit
9069542d0b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue