Fix #10884 compiler warnings.

This commit is contained in:
Richard Heck 2017-12-16 00:48:34 -05:00
parent e0672b36f3
commit 8a1377f6ff
2 changed files with 5 additions and 4 deletions

View File

@ -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();

View File

@ -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; }