mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix #10884 compiler warnings.
This commit is contained in:
parent
e0672b36f3
commit
8a1377f6ff
@ -388,10 +388,10 @@ bool SpellcheckerWidget::initialiseParams(std::string const &)
|
||||
BufferView * bv = d->gv_->documentBufferView();
|
||||
if (bv == 0)
|
||||
return false;
|
||||
std::set<Language const *> languages =
|
||||
std::set<Language const *> langs =
|
||||
bv->buffer().masterBuffer()->getLanguages();
|
||||
if (!languages.empty())
|
||||
d->setLanguage(*languages.begin());
|
||||
if (!langs.empty())
|
||||
d->setLanguage(*langs.begin());
|
||||
d->start_ = DocIterator();
|
||||
d->wrapAround(false);
|
||||
d->canCheck();
|
||||
|
@ -71,7 +71,8 @@ public:
|
||||
private:
|
||||
///{
|
||||
void updateView();
|
||||
bool initialiseParams(std::string const & data) { return widget_->initialiseParams(data); }
|
||||
bool initialiseParams(std::string const & sdata)
|
||||
{ return widget_->initialiseParams(sdata); }
|
||||
void clearParams() {}
|
||||
void dispatchParams() {}
|
||||
bool isBufferDependent() const { return false; }
|
||||
|
Loading…
Reference in New Issue
Block a user