mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +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();
|
BufferView * bv = d->gv_->documentBufferView();
|
||||||
if (bv == 0)
|
if (bv == 0)
|
||||||
return false;
|
return false;
|
||||||
std::set<Language const *> languages =
|
std::set<Language const *> langs =
|
||||||
bv->buffer().masterBuffer()->getLanguages();
|
bv->buffer().masterBuffer()->getLanguages();
|
||||||
if (!languages.empty())
|
if (!langs.empty())
|
||||||
d->setLanguage(*languages.begin());
|
d->setLanguage(*langs.begin());
|
||||||
d->start_ = DocIterator();
|
d->start_ = DocIterator();
|
||||||
d->wrapAround(false);
|
d->wrapAround(false);
|
||||||
d->canCheck();
|
d->canCheck();
|
||||||
|
@ -71,7 +71,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
///{
|
///{
|
||||||
void updateView();
|
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 clearParams() {}
|
||||||
void dispatchParams() {}
|
void dispatchParams() {}
|
||||||
bool isBufferDependent() const { return false; }
|
bool isBufferDependent() const { return false; }
|
||||||
|
Loading…
Reference in New Issue
Block a user