Remove unnecessary copy ctor/operator= definitions
This commit is contained in:
@@ -168,52 +168,6 @@ public:
|
||||
|
||||
~wxAuiPaneInfo() {}
|
||||
|
||||
#ifndef SWIG
|
||||
wxAuiPaneInfo(const wxAuiPaneInfo& c)
|
||||
{
|
||||
name = c.name;
|
||||
caption = c.caption;
|
||||
icon = c.icon;
|
||||
window = c.window;
|
||||
frame = c.frame;
|
||||
state = c.state;
|
||||
dock_direction = c.dock_direction;
|
||||
dock_layer = c.dock_layer;
|
||||
dock_row = c.dock_row;
|
||||
dock_pos = c.dock_pos;
|
||||
best_size = c.best_size;
|
||||
min_size = c.min_size;
|
||||
max_size = c.max_size;
|
||||
floating_pos = c.floating_pos;
|
||||
floating_size = c.floating_size;
|
||||
dock_proportion = c.dock_proportion;
|
||||
buttons = c.buttons;
|
||||
rect = c.rect;
|
||||
}
|
||||
|
||||
wxAuiPaneInfo& operator=(const wxAuiPaneInfo& c)
|
||||
{
|
||||
name = c.name;
|
||||
caption = c.caption;
|
||||
window = c.window;
|
||||
frame = c.frame;
|
||||
state = c.state;
|
||||
dock_direction = c.dock_direction;
|
||||
dock_layer = c.dock_layer;
|
||||
dock_row = c.dock_row;
|
||||
dock_pos = c.dock_pos;
|
||||
best_size = c.best_size;
|
||||
min_size = c.min_size;
|
||||
max_size = c.max_size;
|
||||
floating_pos = c.floating_pos;
|
||||
floating_size = c.floating_size;
|
||||
dock_proportion = c.dock_proportion;
|
||||
buttons = c.buttons;
|
||||
rect = c.rect;
|
||||
return *this;
|
||||
}
|
||||
#endif // SWIG
|
||||
|
||||
// Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
|
||||
// used on loading perspectives etc.
|
||||
void SafeSet(wxAuiPaneInfo source)
|
||||
@@ -686,17 +640,6 @@ public:
|
||||
canveto_flag = true;
|
||||
dc = NULL;
|
||||
}
|
||||
#ifndef SWIG
|
||||
wxAuiManagerEvent(const wxAuiManagerEvent& c) : wxEvent(c)
|
||||
{
|
||||
manager = c.manager;
|
||||
pane = c.pane;
|
||||
button = c.button;
|
||||
veto_flag = c.veto_flag;
|
||||
canveto_flag = c.canveto_flag;
|
||||
dc = c.dc;
|
||||
}
|
||||
#endif
|
||||
wxEvent *Clone() const wxOVERRIDE { return new wxAuiManagerEvent(*this); }
|
||||
|
||||
void SetManager(wxAuiManager* mgr) { manager = mgr; }
|
||||
@@ -745,39 +688,6 @@ public:
|
||||
reserved1 = false;
|
||||
}
|
||||
|
||||
#ifndef SWIG
|
||||
wxAuiDockInfo(const wxAuiDockInfo& c)
|
||||
{
|
||||
dock_direction = c.dock_direction;
|
||||
dock_layer = c.dock_layer;
|
||||
dock_row = c.dock_row;
|
||||
size = c.size;
|
||||
min_size = c.min_size;
|
||||
resizable = c.resizable;
|
||||
fixed = c.fixed;
|
||||
toolbar = c.toolbar;
|
||||
panes = c.panes;
|
||||
rect = c.rect;
|
||||
reserved1 = c.reserved1;
|
||||
}
|
||||
|
||||
wxAuiDockInfo& operator=(const wxAuiDockInfo& c)
|
||||
{
|
||||
dock_direction = c.dock_direction;
|
||||
dock_layer = c.dock_layer;
|
||||
dock_row = c.dock_row;
|
||||
size = c.size;
|
||||
min_size = c.min_size;
|
||||
resizable = c.resizable;
|
||||
fixed = c.fixed;
|
||||
toolbar = c.toolbar;
|
||||
panes = c.panes;
|
||||
rect = c.rect;
|
||||
reserved1 = c.reserved1;
|
||||
return *this;
|
||||
}
|
||||
#endif // SWIG
|
||||
|
||||
bool IsOk() const { return dock_direction != 0; }
|
||||
bool IsHorizontal() const { return dock_direction == wxAUI_DOCK_TOP ||
|
||||
dock_direction == wxAUI_DOCK_BOTTOM; }
|
||||
|
Reference in New Issue
Block a user