fix a few compilation warnings with gcc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@29242 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2009-04-14 10:37:49 +00:00
parent 6bbe06df46
commit 273832e21f
4 changed files with 6 additions and 4 deletions

View File

@ -291,7 +291,7 @@ void GuiGraphics::change_adaptor()
}
void GuiGraphics::change_group(int index)
void GuiGraphics::change_group(int /*index*/)
{
QString const new_group = groupCO->itemData(
groupCO->currentIndex()).toString();

View File

@ -390,10 +390,10 @@ bool GuiView::restoreLayout()
// Allow the toc and view-source dock widget to be restored if needed.
Dialog *d;
if (d = findOrBuild("toc", true))
if ((d = findOrBuild("toc", true)))
// see bug 5082
d->showView();
if (d = findOrBuild("view-source", true))
if ((d = findOrBuild("view-source", true)))
d->showView();
if (!restoreState(settings.value("layout").toByteArray(), 0))

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

View File

@ -264,3 +264,5 @@ What's new
previously existing monolithic flags;
- Fix monolithic build.
- Fix a few compilation warnings with gcc.