Small clean-up.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7795 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-18 22:26:46 +00:00
parent 62df753a2e
commit 4348674beb
4 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2003-09-18 Angus Leeming <leeming@lyx.org>
* ControlCommand.C (clearParams): simplify.
2003-09-18 Angus Leeming <leeming@lyx.org>
* ControlCharacter.C:

View File

@ -31,9 +31,7 @@ bool ControlCommand::initialiseParams(string const & data)
void ControlCommand::clearParams()
{
params_.setCmdName(string());
params_.setOptions(string());
params_.setContents(string());
params_ = InsetCommandParams();
}

View File

@ -1,3 +1,7 @@
2003-09-18 Angus Leeming <leeming@lyx.org>
* insetcommand.C (setParams): use the params' copy constructor.
2003-09-18 Angus Leeming <leeming@lyx.org>
* insetinsetbase.h (getLabelList):

View File

@ -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;
}