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:
Marshall Greenblatt
2025-01-14 13:42:20 -05:00
parent a242ee518a
commit 2d8b6b06f2
4 changed files with 25 additions and 56 deletions

View File

@ -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.