Fixed compile on Windows.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4618 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-09-27 20:25:12 +00:00
parent 21feaf46da
commit bb9f362458

View File

@ -358,10 +358,7 @@ static void sendMail (QString sAddress, QString sSubject, QString sBody)
{ {
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
/* search and replace the end of lines with: "%0D%0A" */ /* search and replace the end of lines with: "%0D%0A" */
size_t loc; sBody.replace("\n", "%0D%0A");
while ((loc = sBody.find("\n")) != sBody.npos) {
sBody.replace(loc, 1, "%0D%0A");
}
#endif #endif
QUrl url = QUrl("mailto:" + sAddress); QUrl url = QUrl("mailto:" + sAddress);