mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
* 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:
parent
20e21c1818
commit
db95e2cb85
@ -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_)));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user