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

View File

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