summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-07 18:02:12 +0200
committerLuboš Luňák <l.lunak@collabora.com>2021-10-25 19:30:49 +0200
commit1d54cb6adfe0b8730298b39cb4f4b1c390ae1e8f (patch)
tree4881e0f91dd64d5999061a2fb5fc3680d66567a0 /test
parent08b1d125254313917aeed38317bf422c2c958b66 (diff)
use pull model also for LOK text selection
Make LOK_CALLBACK_TEXT_SELECTION, LOK_CALLBACK_TEXT_SELECTION_START, LOK_CALLBACK_TEXT_SELECTION_END and LOK_CALLBACK_TEXT_VIEW_SELECTION also use pull model, i.e. LO core will only set a flag and when CallbackFlushHandler needs the actual data it'll use getLOKPayload(). This again avoids a large number of messages passed to CallbackFlushHandler only for them to be sooner or later discarded. Change-Id: Ia7528039be996a6e9e8491b4eba3f4133582fa56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124147 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'test')
-rw-r--r--test/source/lokcallback.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/source/lokcallback.cxx b/test/source/lokcallback.cxx
index 8cda54424961..0f6970d2af9c 100644
--- a/test/source/lokcallback.cxx
+++ b/test/source/lokcallback.cxx
@@ -143,7 +143,7 @@ void TestLokCallbackWrapper::flushLOKData()
return shell->GetViewShellId().get() == m_viewId;
});
assert(viewShell != nullptr);
- // First move data to local structures, so that notifyFromLOKCallback() doesn't modify it.
+ // First move data to local structures, so that callbacks don't possibly modify it.
std::vector<int> updatedTypes;
std::swap(updatedTypes, m_updatedTypes);
std::vector<PerViewIdData> updatedTypesPerViewId;