]> git.lyx.org Git - features.git/commitdiff
Fix #10884 compiler warnings.
authorRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 05:48:34 +0000 (00:48 -0500)
committerRichard Heck <rgheck@lyx.org>
Sat, 16 Dec 2017 05:48:34 +0000 (00:48 -0500)
src/frontends/qt4/GuiSpellchecker.cpp
src/frontends/qt4/GuiSpellchecker.h

index 537d9d79b50184b8e652d75aac0ab3369db54e2e..f21001369855a81d676cbd5f6a152e28e741e1f5 100644 (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();
index 5851e8ceda5e31cd9e3c05df50727546f2ca4135..41989697cf0695e72a7c167a27d2b8003a10e493 100644 (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; }