mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove DISALLOW_ macro from libcef/ (see issue #3234)
Also perform related C++ cleanup: - Use =default instead of {} for default implementations of constructors/destructors. - Replace typedef with using.
This commit is contained in:
@@ -58,6 +58,10 @@ class CefMenuModelImpl : public CefMenuModel {
|
||||
CefMenuModelImpl(Delegate* delegate,
|
||||
CefRefPtr<CefMenuModelDelegate> menu_model_delegate,
|
||||
bool is_submenu);
|
||||
|
||||
CefMenuModelImpl(const CefMenuModelImpl&) = delete;
|
||||
CefMenuModelImpl& operator=(const CefMenuModelImpl&) = delete;
|
||||
|
||||
~CefMenuModelImpl() override;
|
||||
|
||||
// CefMenuModel methods.
|
||||
@@ -189,7 +193,7 @@ class CefMenuModelImpl : public CefMenuModel {
|
||||
private:
|
||||
struct Item;
|
||||
|
||||
typedef std::vector<Item> ItemVector;
|
||||
using ItemVector = std::vector<Item>;
|
||||
|
||||
// Functions for inserting items into |items_|.
|
||||
void AppendItem(const Item& item);
|
||||
@@ -226,7 +230,6 @@ class CefMenuModelImpl : public CefMenuModel {
|
||||
bool auto_notify_menu_closed_ = true;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(CefMenuModelImpl);
|
||||
DISALLOW_COPY_AND_ASSIGN(CefMenuModelImpl);
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_MENU_MODEL_IMPL_H_
|
||||
|
Reference in New Issue
Block a user