refactor: remove unnecessary const_cast
(#46568)
refactor: remove unnecessary const_cast
unnecessary since July 2019 in 50b9c70
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
17ef6b8885
commit
ef973971a3
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