* Dialog: name_ is const and is ascii.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22014 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-12-08 14:24:11 +00:00
parent 20e21c1818
commit db95e2cb85
2 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ std::string const & Dialog::name() const
bool Dialog::canApply() const
{
FuncRequest const fr(getLfun(), name_);
FuncRequest const fr(getLfun(), from_ascii(name_));
FuncStatus const fs(getStatus(fr));
return fs.enabled();
}
@ -56,7 +56,7 @@ void Dialog::dispatch(FuncRequest const & fr) const
void Dialog::updateDialog() const
{
dispatch(FuncRequest(LFUN_DIALOG_UPDATE, name_));
dispatch(FuncRequest(LFUN_DIALOG_UPDATE, from_ascii(name_)));
}

View File

@ -236,7 +236,7 @@ private:
/** The Dialog's name is the means by which a dialog identifies
* itself to the LyXView.
*/
std::string name_;
std::string const name_;
///
GuiView * lyxview_;