summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-14 08:05:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-03-14 10:39:48 +0100
commit5337675a31a4aad5151691b9c7587bd4b3140715 (patch)
tree6bb6151f3ab1e26fe41b90724020d30032637a5d /include
parent89fb3f7e87fd7ab9312bc43dffea842ffc34b140 (diff)
Simplify vcl::EnglishStringToMetric
Change-Id: I10b93a073a58c175d487b7aac3a65d461974eb6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131514 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/fieldvalues.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/fieldvalues.hxx b/include/vcl/fieldvalues.hxx
index b00fc5a47128..999f3e5fa355 100644
--- a/include/vcl/fieldvalues.hxx
+++ b/include/vcl/fieldvalues.hxx
@@ -20,6 +20,10 @@
#ifndef INCLUDED_VCL_FIELDVALUES_HXX
#define INCLUDED_VCL_FIELDVALUES_HXX
+#include <sal/config.h>
+
+#include <string_view>
+
#include <vcl/dllapi.h>
#include <rtl/ustring.hxx>
#include <tools/fldunit.hxx>
@@ -29,7 +33,7 @@ class LocaleDataWrapper;
namespace vcl
{
-VCL_DLLPUBLIC FieldUnit EnglishStringToMetric(const OUString& rEnglishMetricString);
+VCL_DLLPUBLIC FieldUnit EnglishStringToMetric(std::string_view rEnglishMetricString);
VCL_DLLPUBLIC bool TextToValue(const OUString& rStr, double& rValue, sal_Int64 nBaseValue,
sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper,