On Wed, May 07, 2008 at 09:05:06PM -0000, [EMAIL PROTECTED] wrote:
> URL: 
> http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiCharacter.cpp?rev=24665
> ==============================================================================
> --- lyx-devel/trunk/src/frontends/qt4/GuiCharacter.cpp (original)
> +++ lyx-devel/trunk/src/frontends/qt4/GuiCharacter.cpp Wed May  7 23:05:04 
> 2008
> @@ -118,10 +118,10 @@
>  
>  namespace {
>  
> -template<class T>
> +template<typename T>
>  void fillCombo(QComboBox * combo, QList<T> list)

Btw, a const & would do as well.

>  {
> -     QList<T>::const_iterator cit = list.begin();
> +     typename QList<T>::const_iterator cit = list.begin();
>       for (; cit != list.end(); ++cit)
>               combo->addItem(cit->first);
>  }
> 
> Modified: lyx-devel/trunk/src/frontends/qt4/qt_helpers.h
> URL: 
> http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/qt_helpers.h?rev=24665
> ==============================================================================
> --- lyx-devel/trunk/src/frontends/qt4/qt_helpers.h (original)
> +++ lyx-devel/trunk/src/frontends/qt4/qt_helpers.h Wed May  7 23:05:04 2008
> @@ -18,6 +18,8 @@
>  #include "qt_i18n.h"
>  
>  #include <QString>
> +
> +#include <utility>

And that was the reason to use the struct instead of std::pair.

*sigh*

Andre'

Reply via email to