diff options
author | George Hazan <ghazan@miranda.im> | 2017-05-03 17:44:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-05-03 17:44:53 +0300 |
commit | e36fec231359220bf3af8bb8c1957078dd046f4e (patch) | |
tree | c6e2ff4c10e811ddd1b892d0e9646adbb75e1322 /plugins/Scriver | |
parent | dedc5fb828f07003eb2bfb4356055baec8490a5c (diff) |
CCtrlRichEdit::GetRichTextUtf considered useless
Diffstat (limited to 'plugins/Scriver')
-rw-r--r-- | plugins/Scriver/src/input.cpp | 2 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/input.cpp b/plugins/Scriver/src/input.cpp index 7b2c7d5379..f9d96235c6 100644 --- a/plugins/Scriver/src/input.cpp +++ b/plugins/Scriver/src/input.cpp @@ -207,7 +207,7 @@ int CScriverWindow::InputAreaShortcuts(HWND hwnd, UINT msg, WPARAM wParam, LPARA cmdListNew = tcmdlist_last(cmdList);
}
if (cmdListNew != nullptr) {
- char *textBuffer = m_message.GetRichTextUtf();
+ char *textBuffer = m_message.GetRichTextRtf(true);
if (textBuffer != nullptr)
// takes textBuffer to a queue, no leak here
cmdList = tcmdlist_append(cmdList, textBuffer, 20, TRUE);
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index cebfea6c55..e692c47a26 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -391,7 +391,7 @@ void CSrmmWindow::OnDestroy() ReleaseSendQueueItems(m_hwnd);
if (g_dat.flags & SMF_SAVEDRAFTS) {
- ptrA szText(m_message.GetRichTextUtf());
+ ptrA szText(m_message.GetRichTextRtf(true));
if (szText)
db_set_utf(m_hContact, "SRMM", "SavedMsg", szText);
else
@@ -438,7 +438,7 @@ void CSrmmWindow::onClick_Ok(CCtrlButton *pButton) if (pf2.wEffects & PFE_RTLPARA)
msi.flags |= PREF_RTL;
- msi.sendBuffer = m_message.GetRichTextUtf();
+ msi.sendBuffer = m_message.GetRichTextRtf(true);
msi.sendBufferSize = (int)mir_strlen(msi.sendBuffer);
if (msi.sendBufferSize == 0)
return;
|