mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +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.
|
||||
- Breaking: MenuDirection enum is renamed Direction
|
||||
- Fix: Remove useless new line when using an alternative screen.
|
||||
- Breaking/Fix: Remove `ComponentBase` copy constructor/assignment.
|
||||
|
||||
### Dom
|
||||
- Feature: Add the dashed style for border and separator.
|
||||
|
@ -29,6 +29,12 @@ class ComponentBase {
|
||||
// virtual Destructor.
|
||||
virtual ~ComponentBase();
|
||||
|
||||
ComponentBase() = default;
|
||||
|
||||
// A component is not copiable.
|
||||
ComponentBase(const ComponentBase&) = delete;
|
||||
void operator=(const ComponentBase&) = delete;
|
||||
|
||||
// Component hierarchy:
|
||||
ComponentBase* Parent() const;
|
||||
Component& ChildAt(size_t i);
|
||||
|
Loading…
Reference in New Issue
Block a user