schmitt <[EMAIL PROTECTED]> writes:

| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/BufferView_pimpl.C,v
| retrieving revision 1.12
| diff -r1.12 BufferView_pimpl.C
| 472c472
| <       pair<double, double> p = workarea->getScrollbarBounds();
| ---
| >       pair<float, float> p = workarea->getScrollbarBounds();

As said earlier: This is only needed becasue of buggy C++ lib
but it is correct that getScrollbarBounds return a
pair<float,float>... I consider that a bug in the XForms lib.

| Index: src/language.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/language.C,v
| retrieving revision 1.4
| diff -r1.4 language.C
| 9c9
| < Language ignore_lang = {"ignore", "Ignore", false};
| ---
| > Language ignore_lang( "ignore", "Ignore", false );

What error messages do you get from the compiler with the { ... }
initializer?

| Index: src/language.h
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/language.h,v
| retrieving revision 1.5
| diff -r1.5 language.h
| 8a9,12
| >         Language() {};
| >       Language( string lang, string display, bool RightToLeft ) :
| >          lang( lang ), display( display ), RightToLeft( RightToLeft ) {};
| >
| Index:
| src/layout.C                           
                         
I'll do this change since it is cleaner than the initializer list
anyway.

| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/layout.C,v
| retrieving revision 1.24
| diff -r1.24 layout.C
| 1330c1330
| <                       return make_pair(true, cit - classlist.begin());
| ---
| >                       return make_pair(true, static_cast<unsigned>( cit - 
|classlist.begin()));
| 1359c1359
| <               return make_pair(true, LYX_DUMMY_LAYOUT);
| ---
| >               return make_pair(true, static_cast< unsigned >(
| LYX_DUMMY_LAYOUT ) );

Note that "unsigned" is not a valid type anymore, "unsigned int" shold
be used.
We should probably se "size_type" instead anyway.
(This should really not be needed, it is your stupid C++ lib that
forces this cast upon us.)

| Index: src/lyx_gui_misc.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_gui_misc.C,v
| retrieving revision 1.20
| diff -r1.20 lyx_gui_misc.C
| 399c399
| <         return make_pair<bool, string>(true, tmp);
| ---
| >         return make_pair<bool, string>(true, string( tmp ));

ditto!

| Index: src/lyx_main.C
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_main.C,v
| retrieving revision 1.34
| diff -r1.34 lyx_main.C
| 35a36
| > using std::signal;
| Index: src/lyxparagraph.h                

This will probably not work egcs, I'll check.

|      
| ===================================================================
| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxparagraph.h,v
| retrieving revision 1.33
| diff -r1.33 lyxparagraph.h
| 515c515
| < private:
| ---
| > public:
| 525a526
| > private:
| Index: src/text2.C

The "friend struct matchIT;" are supposed to fix this.
Does your compiler have a problem with friends?

| RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_symbols.C,v
| retrieving revision 1.26
| diff -r1.26 math_symbols.C
| 546c546
| <       char * sx = strstr(data[2], "FFFFFFFF");
| ---
| >       char * sx = const_cast< char * >( strstr(data[2], "FFFFFFFF") );

Fair enough.

        Lgb

Reply via email to