Simplify the invocation of the Mailer::hide/showDialog() functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8150 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-11-28 17:13:41 +00:00
parent 7de76711b1
commit 3bb6b37043
9 changed files with 21 additions and 16 deletions

View File

@ -1,3 +1,16 @@
2003-11-28 Angus Leeming <leeming@lyx.org>
* insetbox.C (d-tor):
* insetbranch.C (d-tor):
* insetcite.C (d-tor):
* insetfloat.C (d-tor):
* insetfloatlist.C (d-tor):
* insetinclude.C (d-tor):
* insetindex.C (d-tor):
simplify the invocation of the Mailer::hideDialog() function.
* insetminipage.C (showInsetDialog):
simplify the invocation of the Mailer::showialog() function.
2003-11-28 André Pönitz <poenitz@gmx.net>

View File

@ -96,8 +96,7 @@ InsetBox::InsetBox(InsetBox const & in)
InsetBox::~InsetBox()
{
InsetBoxMailer mailer(*this);
mailer.hideDialog();
InsetBoxMailer(*this).hideDialog();
}

View File

@ -59,8 +59,7 @@ InsetBranch::InsetBranch(InsetBranch const & in)
InsetBranch::~InsetBranch()
{
InsetBranchMailer mailer("branch", *this);
mailer.hideDialog();
InsetBranchMailer("branch", *this).hideDialog();
}

View File

@ -226,8 +226,7 @@ InsetCitation::InsetCitation(InsetCommandParams const & p)
InsetCitation::~InsetCitation()
{
InsetCommandMailer mailer("citation", *this);
mailer.hideDialog();
InsetCommandMailer("citation", *this).hideDialog();
}

View File

@ -156,8 +156,7 @@ InsetFloat::InsetFloat(InsetFloat const & in)
InsetFloat::~InsetFloat()
{
InsetFloatMailer mailer(*this);
mailer.hideDialog();
InsetFloatMailer(*this).hideDialog();
}

View File

@ -48,8 +48,7 @@ InsetFloatList::InsetFloatList(string const & type)
InsetFloatList::~InsetFloatList()
{
InsetCommandMailer mailer("toc", *this);
mailer.hideDialog();
InsetCommandMailer("toc", *this).hideDialog();
}

View File

@ -103,8 +103,7 @@ InsetInclude::InsetInclude(InsetInclude const & other)
InsetInclude::~InsetInclude()
{
InsetIncludeMailer mailer(*this);
mailer.hideDialog();
InsetIncludeMailer(*this).hideDialog();
}

View File

@ -35,8 +35,7 @@ InsetIndex::InsetIndex(InsetCommandParams const & p)
InsetIndex::~InsetIndex()
{
InsetCommandMailer mailer("index", *this);
mailer.hideDialog();
InsetCommandMailer("index", *this).hideDialog();
}

View File

@ -274,8 +274,7 @@ bool InsetMinipage::showInsetDialog(BufferView * bv) const
{
if (!inset.showInsetDialog(bv)) {
InsetMinipage * tmp = const_cast<InsetMinipage *>(this);
InsetMinipageMailer mailer(*tmp);
mailer.showDialog(bv);
InsetMinipageMailer(*tmp).showDialog(bv);
}
return true;