summaryrefslogtreecommitdiff
path: root/svx/source/dialog
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-12 12:43:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-13 08:38:53 +0200
commitfdfd517a6f75e394ddcb1e195decbfed33ba56b9 (patch)
treee3bff14e5531affcd908415b4e85d7ceac4aa1fd /svx/source/dialog
parente568c9dca8b93b96a8a130a8fb6f1bba1a33d6ea (diff)
loplugin:stringviewparam whitelist some more functions
for which we have o3tl:: equivalents Change-Id: I4670fd8b703ac47214be213f41e88d1c6ede7032 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132913 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/dialog')
-rw-r--r--svx/source/dialog/svxruler.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx
index ca680dd09bb9..98c9211efb01 100644
--- a/svx/source/dialog/svxruler.cxx
+++ b/svx/source/dialog/svxruler.cxx
@@ -42,6 +42,7 @@
#include <editeng/protitem.hxx>
#include <osl/diagnose.h>
#include <rtl/math.hxx>
+#include <o3tl/string_view.hxx>
#include "rlrcitem.hxx"
#include <memory>
@@ -3270,11 +3271,11 @@ void SvxRuler::MenuSelect(std::string_view ident)
SetUnit(vcl::EnglishStringToMetric(ident));
}
-void SvxRuler::TabMenuSelect(const OString& rIdent)
+void SvxRuler::TabMenuSelect(std::string_view rIdent)
{
- if (rIdent.isEmpty())
+ if (rIdent.empty())
return;
- sal_Int32 nId = rIdent.toInt32();
+ sal_Int32 nId = o3tl::toInt32(rIdent);
/* Handler of the tab menu for setting the type */
if (mxTabStopItem && mxTabStopItem->Count() > mxRulerImpl->nIdx)
{