fix two compiler warnings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28978 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-03-30 10:36:05 +00:00
parent 26bb1474f3
commit 3030a279ac
2 changed files with 2 additions and 2 deletions

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

View 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) {