diff --git a/src/frontends/controllers/ChangeLog b/src/frontends/controllers/ChangeLog index 0cb90030af..fef06c6449 100644 --- a/src/frontends/controllers/ChangeLog +++ b/src/frontends/controllers/ChangeLog @@ -1,3 +1,7 @@ +2003-09-18 Angus Leeming + + * ControlCommand.C (clearParams): simplify. + 2003-09-18 Angus Leeming * ControlCharacter.C: diff --git a/src/frontends/controllers/ControlCommand.C b/src/frontends/controllers/ControlCommand.C index 8290fda9ce..8647f70a6a 100644 --- a/src/frontends/controllers/ControlCommand.C +++ b/src/frontends/controllers/ControlCommand.C @@ -31,9 +31,7 @@ bool ControlCommand::initialiseParams(string const & data) void ControlCommand::clearParams() { - params_.setCmdName(string()); - params_.setOptions(string()); - params_.setContents(string()); + params_ = InsetCommandParams(); } diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 1d19d84766..d45a274683 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2003-09-18 Angus Leeming + + * insetcommand.C (setParams): use the params' copy constructor. + 2003-09-18 Angus Leeming * insetinsetbase.h (getLabelList): diff --git a/src/insets/insetcommand.C b/src/insets/insetcommand.C index d22818b62a..ffb0babd2e 100644 --- a/src/insets/insetcommand.C +++ b/src/insets/insetcommand.C @@ -57,9 +57,7 @@ void InsetCommand::draw(PainterInfo & pi, int x, int y) const void InsetCommand::setParams(InsetCommandParams const & p) { - p_.setCmdName(p.getCmdName()); - p_.setContents(p.getContents()); - p_.setOptions(p.getOptions()); + p_ = p; set_label_ = false; }