Miyata Shigeru <[EMAIL PROTECTED]> writes:
| I haven't modified my code to use traits as suggested by
| Lars. However it seems to work all right.
| Please take a look, comment, critisize, and help me write
| a clean code. Please do not apply every thing blindly.
|
| BTW I had to modify the type of BufferView::Pimpl::Position::par_pos
| from int to LyXParagraph::size_type in order to compile here.
--- lyx-devel/src/support/rename.C 2000/11/13 10:35:02 1.5
+++ lyx-devel/src/support/rename.C 2001/01/29 11:58:32
@@ -6,6 +6,9 @@
bool lyx::rename(string const & from, string const & to)
{
+#ifdef __EMX__
+ ::unlink(to.c_str());
+#endif
Why not lyx::unlink(to); ?
To me it look good and certainly a step in the right direction.
I have so far only looked at the diff.
Lgb