summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 2440a92be948..0b14c492ed23 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -662,9 +662,9 @@ void SmEditWindow::SelPrevMark()
}
// returns true iff 'rText' contains a mark
-static bool HasMark(const OUString& rText)
+static bool HasMark(std::u16string_view rText)
{
- return rText.indexOf("<?>") != -1;
+ return rText.find(u"<?>") != std::u16string_view::npos;
}
ESelection SmEditWindow::GetSelection() const