From 11fb01577835fbe3dbc309c690ae646080762742 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 28 Jan 2013 14:25:04 +0200 Subject: merged with miranda_ng main repo implemented #78 (except menu) --- options.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index 6fb37bb..8360a26 100755 --- a/options.cpp +++ b/options.cpp @@ -381,8 +381,7 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", ""); std::string str = szKey;; mir_free(szKey); - for(std::string::size_type i = str.find("\n"); i != std::string::npos; i = str.find("\n", i+2)) - str.replace(i, 1, "\r\n"); + boost::algorithm::replace_all(str, "\n", "\r\n"); HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, str.size() +1); if(!hMem) { -- cgit v1.2.3