summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-08-17 08:40:31 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-08-17 09:28:59 +0200
commit0b85a66cc3d8e54747506089f92e154dc7665bfe (patch)
tree8a4a755a6803649e12e018089fc810946a5257f6 /starmath/source
parent78fb8fe0c5a58bc4d5074de66e77c20c3a441fd3 (diff)
Return std::optional instead of using bool* argument
Change-Id: I47f03411a6677f22291bea4dc06920ab9052349a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138399 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/view.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index add20227a808..56fc72bdd96d 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -2275,7 +2275,7 @@ void SmViewShell::ZoomByItemSet(const SfxItemSet *pSet)
}
}
-OString SmViewShell::getLOKPayload(int nType, int nViewId, bool* ignore) const
+std::optional<OString> SmViewShell::getLOKPayload(int nType, int nViewId) const
{
switch (nType)
{
@@ -2285,11 +2285,9 @@ OString SmViewShell::getLOKPayload(int nType, int nViewId, bool* ignore) const
case LOK_CALLBACK_TEXT_SELECTION_START:
case LOK_CALLBACK_TEXT_SELECTION_END:
case LOK_CALLBACK_TEXT_VIEW_SELECTION:
- if (ignore)
- *ignore = true;
return {};
}
- return SfxViewShell::getLOKPayload(nType, nViewId, ignore); // aborts
+ return SfxViewShell::getLOKPayload(nType, nViewId); // aborts
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */