mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update source files for bracket style
This commit is contained in:
@ -22,12 +22,14 @@ CefRefPtr<CefMenuButtonImpl> CefMenuButtonImpl::Create(
|
||||
const CefString& text) {
|
||||
CEF_REQUIRE_UIT_RETURN(nullptr);
|
||||
DCHECK(delegate);
|
||||
if (!delegate)
|
||||
if (!delegate) {
|
||||
return nullptr;
|
||||
}
|
||||
CefRefPtr<CefMenuButtonImpl> menu_button = new CefMenuButtonImpl(delegate);
|
||||
menu_button->Initialize();
|
||||
if (!text.empty())
|
||||
if (!text.empty()) {
|
||||
menu_button->SetText(text);
|
||||
}
|
||||
return menu_button;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user