mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-18 21:45:24 +00:00
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:
parent
6bbe06df46
commit
273832e21f
@ -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();
|
||||
|
@ -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))
|
||||
|
@ -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) {
|
||||
|
@ -264,3 +264,5 @@ What's new
|
||||
previously existing monolithic flags;
|
||||
|
||||
- Fix monolithic build.
|
||||
|
||||
- Fix a few compilation warnings with gcc.
|
||||
|
Loading…
x
Reference in New Issue
Block a user