diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/IEView/src/ieview_logger.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history_log.cpp | 4 | ||||
-rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/IEView/src/ieview_logger.cpp b/plugins/IEView/src/ieview_logger.cpp index 20391f34a3..e70eac0b20 100644 --- a/plugins/IEView/src/ieview_logger.cpp +++ b/plugins/IEView/src/ieview_logger.cpp @@ -78,7 +78,7 @@ public: return m_hwnd; } - wchar_t* GetSelection() override + wchar_t* GetSelectedText() override { auto *view = IEView::get(m_hwnd); return (view != nullptr) ? view->selection() : nullptr; diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index 1cd971f388..7f1b35bb9b 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -63,9 +63,9 @@ public: return m_hwnd;
}
- wchar_t *GetSelection() override
+ wchar_t* GetSelectedText() override
{
- return nullptr;
+ return m_histCtrl->GatherSelected(true).Detach();
}
int GetType() override
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 69783ba143..ff8c9b9a98 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -371,7 +371,7 @@ void CMsgDialog::onClick_Quote(CCtrlButton*) if (!hDbEventLast)
return;
- wchar_t *buffer = m_pLog->GetSelection();
+ wchar_t *buffer = m_pLog->GetSelectedText();
if (buffer != nullptr) {
SetMessageText(Srmm_Quote(buffer));
mir_free(buffer);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 8cd71399bb..d9fd2c3804 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -904,7 +904,7 @@ void CMsgDialog::onClick_Quote(CCtrlButton*) CMStringW szQuoted;
int iOutputWidth = M.GetDword("quoteLineLength", 64);
- wchar_t *selected = m_pLog->GetSelection();
+ wchar_t *selected = m_pLog->GetSelectedText();
if (selected != nullptr)
szQuoted = Srmm_Quote(selected, iOutputWidth);
else {
|