On 16/09/2010 17:31, Stephan Witt wrote:
Am 14.09.2010 um 15:46 schrieb Abdelrazak Younes:

On 09/14/2010 02:48 PM, [email protected] wrote:
Author: switt
Date: Tue Sep 14 14:48:03 2010
New Revision: 35369
URL:
http://www.lyx.org/trac/changeset/35369


Log:
reduce nesting levels in markMisspelledWords; simplify range check of fontspan
I have a compile error:

/home/younes/devel/lyx/trunk/src/Paragraph.cpp: In member function ‘void 
lyx::Paragraph::Private::markMisspelledWords(const lyx::pos_type&, const lyx::pos_type&, 
lyx::SpellChecker::Result, const lyx::docstring&, const std::vector<long int, std::allocator<long 
int>  >&)’:
/home/younes/devel/lyx/trunk/src/Paragraph.cpp:3538: error: no matching function for call to 
‘lyx::Paragraph::Private::countSoftbreaks(__gnu_cxx::__normal_iterator<const long int*, std::vector<long int, 
std::allocator<long int>  >  >&, __gnu_cxx::__normal_iterator<const long int*, std::vector<long int, 
std::allocator<long int>  >  >&, int&)’
/home/younes/devel/lyx/trunk/src/Paragraph.cpp:366: note: candidates are: int 
lyx::Paragraph::Private::countSoftbreaks(__gnu_cxx::__normal_iterator<const long int*, std::vector<long int, 
std::allocator<long int>  >  >&, __gnu_cxx::__normal_iterator<const long int*, std::vector<long int, 
std::allocator<long int>  >  >, lyx::pos_type&) const
make[2]: *** 
[src/CMakeFiles/lyx2.0.dir/home/younes/devel/lyx/trunk/src/Paragraph.cpp.o] 
Error 1

Abdel.
Of course the function Paragraph::Private::countSoftbreaks() should have int 
argument,
but why did it compile here with gcc 4.2.1 on Mac and gcc 4.4 on Linux?

What's your environment?

Kubuntu 10.04, gcc-4.3 I believe.

Another question:
I want to replace the map of the speller state by a vector to make it more 
similar to the FontList.
The patch is attached. Is it ok?

Sorry, no time but it seems to remove code so, if that doesn't introduce regression in performance this has to be good.

Abdel.

Reply via email to