From bb9f3624582c7ce2a1f156c5142ec4f57f01bcca Mon Sep 17 00:00:00 2001 From: thunder2 Date: Tue, 27 Sep 2011 20:25:12 +0000 Subject: [PATCH] Fixed compile on Windows. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4618 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp index bad0416af..f9aaa8c50 100755 --- a/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp +++ b/retroshare-gui/src/gui/connect/ConnectFriendWizard.cpp @@ -358,10 +358,7 @@ static void sendMail (QString sAddress, QString sSubject, QString sBody) { #ifdef Q_WS_WIN /* search and replace the end of lines with: "%0D%0A" */ - size_t loc; - while ((loc = sBody.find("\n")) != sBody.npos) { - sBody.replace(loc, 1, "%0D%0A"); - } + sBody.replace("\n", "%0D%0A"); #endif QUrl url = QUrl("mailto:" + sAddress);