]> git.lyx.org Git - features.git/commitdiff
fix two compiler warnings
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 Mar 2009 10:36:05 +0000 (10:36 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 30 Mar 2009 10:36:05 +0000 (10:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28978 a592a061-630c-0410-9148-cb99ea01b6c8

src/Thesaurus.cpp
src/frontends/qt4/qt_helpers.cpp

index 357ddbbe0bf42c919b08996ca031280f1f91c5ee..4bfaf86dc4190ffa7e83758060b72284f308e460 100644 (file)
@@ -282,7 +282,7 @@ Thesaurus::Meanings Thesaurus::lookup(docstring const &, docstring const &)
 }
 
 
-bool Thesaurus::thesaurusAvailable(docstring const & lang) const
+bool Thesaurus::thesaurusAvailable(docstring const &) const
 {
        return false;
 }
index e2a379d4c1c7b09b74bb941be7c5de2342bc6ae3..a13eb8c7fd7923aeb0d72cc883e946114a04d8a9 100644 (file)
@@ -92,7 +92,7 @@ Length widgetsToLength(QLineEdit const * input, QComboBox const * combo)
        if (isValidGlueLength(fromqstr(length)))
                return Length(fromqstr(length));
 
-       Length::UNIT unit;
+       Length::UNIT unit = Length::UNIT_NONE;
        QString const item = combo->currentText();
        for (int i = 0; i < num_units; i++) {
                if (qt_(lyx::unit_name_gui[i]) == item) {