On Thu, Jun 15, 2006 at 08:48:45PM +0200, Georg Baum wrote: > -#ifdef Q_WS_WIN > +#elif defined(_WIN32) > // Windows clipboard uses \r\n for lineendings, and we use \n > - return subst(str, '\n', '\r\n'); > + return subst(str, "\n", "\r\n"); > +#else > + return str; > #endif
Please, don't use _WIN32 in place of Q_WS_WIN when something is related to Qt. Q_WS_WIN is also defined when using a cygwin Qt/native (I mean non-X11), whereas _WIN32 is not. In this case the Windows clipboard is used, so I think that it should be #elif defined(Q_WS_WIN). -- Enrico