mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef: Convert NULL to nullptr (see issue #2861)
This commit is contained in:
@@ -107,7 +107,7 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
bool GetIconAt(int index, gfx::Image* icon) const override { return false; }
|
||||
|
||||
ui::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const override {
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool IsEnabledAt(int index) const override {
|
||||
@@ -128,7 +128,7 @@ class CefSimpleMenuModel : public ui::MenuModel {
|
||||
CefRefPtr<CefMenuModel> submenu = impl_->GetSubMenuAt(index);
|
||||
if (submenu.get())
|
||||
return static_cast<CefMenuModelImpl*>(submenu.get())->model();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void MouseOutsideMenu(const gfx::Point& screen_point) override {
|
||||
@@ -304,7 +304,7 @@ bool CefMenuModelImpl::AddRadioItem(int command_id,
|
||||
CefRefPtr<CefMenuModel> CefMenuModelImpl::AddSubMenu(int command_id,
|
||||
const CefString& label) {
|
||||
if (!VerifyContext())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
Item item(MENUITEMTYPE_SUBMENU, command_id, label, kInvalidGroupId);
|
||||
item.submenu_ = new CefMenuModelImpl(delegate_, menu_model_delegate_, true);
|
||||
@@ -360,7 +360,7 @@ CefRefPtr<CefMenuModel> CefMenuModelImpl::InsertSubMenuAt(
|
||||
int command_id,
|
||||
const CefString& label) {
|
||||
if (!VerifyContext())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
Item item(MENUITEMTYPE_SUBMENU, command_id, label, kInvalidGroupId);
|
||||
item.submenu_ = new CefMenuModelImpl(delegate_, menu_model_delegate_, true);
|
||||
@@ -490,11 +490,11 @@ CefRefPtr<CefMenuModel> CefMenuModelImpl::GetSubMenu(int command_id) {
|
||||
|
||||
CefRefPtr<CefMenuModel> CefMenuModelImpl::GetSubMenuAt(int index) {
|
||||
if (!VerifyContext())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
if (index >= 0 && index < static_cast<int>(items_.size()))
|
||||
return items_[index].submenu_.get();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool CefMenuModelImpl::IsVisible(int command_id) {
|
||||
|
Reference in New Issue
Block a user