mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
Janitor: cleanup C++ AbstractWindowAdapter
- virtual destructor can be = default - rules of 3 for AbstractWindowAdapter - Since WindowAdapter inherit AbstractWindowAdapter, it is already no-copy
This commit is contained in:
parent
2d72781f9f
commit
10d1595f3a
1 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,10 @@ concept Renderer = requires(R r)
|
||||||
class AbstractWindowAdapter
|
class AbstractWindowAdapter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~AbstractWindowAdapter() { }
|
virtual ~AbstractWindowAdapter() = default;
|
||||||
|
AbstractWindowAdapter(const AbstractWindowAdapter &) = delete;
|
||||||
|
AbstractWindowAdapter &operator=(const AbstractWindowAdapter &) = delete;
|
||||||
|
AbstractWindowAdapter() = default;
|
||||||
|
|
||||||
/// This function is called by Slint when the slint window is shown.
|
/// This function is called by Slint when the slint window is shown.
|
||||||
///
|
///
|
||||||
|
@ -98,9 +101,6 @@ public:
|
||||||
explicit WindowAdapter(Args... a) : m_renderer(std::forward<Args>(a)...)
|
explicit WindowAdapter(Args... a) : m_renderer(std::forward<Args>(a)...)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
virtual ~WindowAdapter() = default;
|
|
||||||
WindowAdapter(const WindowAdapter &) = delete;
|
|
||||||
WindowAdapter &operator=(const WindowAdapter &) = delete;
|
|
||||||
|
|
||||||
/// Return a reference to the renderer that can be used to do the rendering.
|
/// Return a reference to the renderer that can be used to do the rendering.
|
||||||
const R &renderer() const { return m_renderer; }
|
const R &renderer() const { return m_renderer; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue