diff options
Diffstat (limited to 'dw/tools.cc')
-rw-r--r-- | dw/tools.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dw/tools.cc b/dw/tools.cc index 60e5e029..cb45ef15 100644 --- a/dw/tools.cc +++ b/dw/tools.cc @@ -20,7 +20,7 @@ SizeParams::SizeParams (int numPos, Widget **references, int *x, int *y) debugPrint (); } -SizeParams::SizeParams (SizeParams &other) +SizeParams::SizeParams (const SizeParams &other) { DBG_OBJ_CREATE ("dw::core::SizeParams"); init (); @@ -34,6 +34,14 @@ SizeParams::~SizeParams () DBG_OBJ_DELETE (); } +SizeParams &SizeParams::operator=(const SizeParams &other) +{ + cleanup (); + init (); + fill (other.numPos, other.references, other.x, other.y); + debugPrint (); +} + void SizeParams::init () { numPos = 0; |