mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 20:27:31 +08:00
Delete copy constructor and copy operator (#638)
Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
parent
4d77353852
commit
9bfa241627
@ -10,6 +10,7 @@ current (development)
|
|||||||
- Feature: Support `ResizableSplit` with customizable separator.
|
- Feature: Support `ResizableSplit` with customizable separator.
|
||||||
- Breaking: MenuDirection enum is renamed Direction
|
- Breaking: MenuDirection enum is renamed Direction
|
||||||
- Fix: Remove useless new line when using an alternative screen.
|
- Fix: Remove useless new line when using an alternative screen.
|
||||||
|
- Breaking/Fix: Remove `ComponentBase` copy constructor/assignment.
|
||||||
|
|
||||||
### Dom
|
### Dom
|
||||||
- Feature: Add the dashed style for border and separator.
|
- Feature: Add the dashed style for border and separator.
|
||||||
|
@ -29,6 +29,12 @@ class ComponentBase {
|
|||||||
// virtual Destructor.
|
// virtual Destructor.
|
||||||
virtual ~ComponentBase();
|
virtual ~ComponentBase();
|
||||||
|
|
||||||
|
ComponentBase() = default;
|
||||||
|
|
||||||
|
// A component is not copiable.
|
||||||
|
ComponentBase(const ComponentBase&) = delete;
|
||||||
|
void operator=(const ComponentBase&) = delete;
|
||||||
|
|
||||||
// Component hierarchy:
|
// Component hierarchy:
|
||||||
ComponentBase* Parent() const;
|
ComponentBase* Parent() const;
|
||||||
Component& ChildAt(size_t i);
|
Component& ChildAt(size_t i);
|
||||||
|
Loading…
Reference in New Issue
Block a user