From c45bc08dc6e64352e11cf632b8ad868c312a62fe Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 12 Apr 2023 08:29:04 +0200 Subject: loplugin:stringview whitelist getLength and isEmpty Change-Id: I38f3410c0b25ff579879b9de1f266af4d8fd51e6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150256 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/edit.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index ca84e648f859..c62d4643e00f 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -325,7 +325,7 @@ bool SmEditTextWindow::KeyInput(const KeyEvent& rKEvt) if (index != -1) { selected = selected.copy(index, sal_Int32(aSelection.nEndPos-index)); - if (selected.trim().isEmpty()) + if (o3tl::trim(selected).empty()) autoClose = true; } else @@ -336,7 +336,7 @@ bool SmEditTextWindow::KeyInput(const KeyEvent& rKEvt) else { selected = selected.copy(aSelection.nEndPos); - if (selected.trim().isEmpty()) + if (o3tl::trim(selected).empty()) autoClose = true; } } -- cgit -5-1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author