diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-28 14:25:04 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2013-01-28 14:25:04 +0200 |
commit | 11fb01577835fbe3dbc309c690ae646080762742 (patch) | |
tree | 7f93cdb7777127536810f9ee22c7666259096d18 /options.cpp | |
parent | d1eec37b0ba6af269da5218edbdd1a74d8c0983b (diff) |
merged with miranda_ng main repo
implemented #78 (except menu)
Diffstat (limited to 'options.cpp')
-rwxr-xr-x | options.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |