From 9db0f4a83c420f1df9ad90450ee909839f1d88ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Wed, 7 May 2008 21:05:04 +0000 Subject: [PATCH] gcc compile fixes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24665 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiCharacter.cpp | 4 ++-- src/frontends/qt4/qt_helpers.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index 71fcf979ef..a1d7abe03a 100644 --- a/src/frontends/qt4/GuiCharacter.cpp +++ b/src/frontends/qt4/GuiCharacter.cpp @@ -118,10 +118,10 @@ static QList familyData() namespace { -template +template void fillCombo(QComboBox * combo, QList list) { - QList::const_iterator cit = list.begin(); + typename QList::const_iterator cit = list.begin(); for (; cit != list.end(); ++cit) combo->addItem(cit->first); } diff --git a/src/frontends/qt4/qt_helpers.h b/src/frontends/qt4/qt_helpers.h index 7084cc95cc..ee3aa6d51c 100644 --- a/src/frontends/qt4/qt_helpers.h +++ b/src/frontends/qt4/qt_helpers.h @@ -19,6 +19,8 @@ #include +#include + class QComboBox; class QLineEdit; class QCheckBox;