mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Clean up CefStructBase inheritance
- Use C++11 using directive for constructor/operator= inheritance. This is a behavioral no-op. - Remove CefStructBase virtual destructor to reduce object size. This is safe because CefStructBase is not deleted polymorphically.
This commit is contained in:
@ -82,14 +82,9 @@ struct CefWindowInfoTraits {
|
||||
///
|
||||
class CefWindowInfo : public CefStructBase<CefWindowInfoTraits> {
|
||||
public:
|
||||
typedef CefStructBase<CefWindowInfoTraits> parent;
|
||||
|
||||
CefWindowInfo() : parent() {}
|
||||
explicit CefWindowInfo(const cef_window_info_t& r) : parent(r) {}
|
||||
explicit CefWindowInfo(const CefWindowInfo& r) : parent(r) {}
|
||||
|
||||
CefWindowInfo& operator=(const CefWindowInfo&) = default;
|
||||
CefWindowInfo& operator=(CefWindowInfo&&) = default;
|
||||
using base_type = CefStructBase<CefWindowInfoTraits>;
|
||||
using base_type::CefStructBase;
|
||||
using base_type::operator=;
|
||||
|
||||
///
|
||||
/// Create the browser as a child window.
|
||||
|
Reference in New Issue
Block a user