summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtflde.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-17 13:33:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-17 14:05:21 +0100
commit95283f63fd1095121c30f7fc23259f03a5382955 (patch)
tree120fe3ecfafd9604f94b11a9c08768647910b950 /xmloff/source/text/txtflde.cxx
parenta8e882b5aa7436395e9e3da0316f45690260166b (diff)
use more string_view in SvXMLUnitConverter
Change-Id: Id40a071e1abf0bf2e13217e8745fdf266010c1c0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107872 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/text/txtflde.cxx')
-rw-r--r--xmloff/source/text/txtflde.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index dc767767f3a6..13d221672bff 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -435,7 +435,7 @@ enum FieldIdEnum XMLTextFieldExport::GetFieldID(
}
enum FieldIdEnum XMLTextFieldExport::MapFieldName(
- const OUString& sFieldName, // field (master) name
+ std::u16string_view sFieldName, // field (master) name
const Reference<XPropertySet> & xPropSet) // for subtype
{
// we'll proceed in 2 steps:
@@ -447,9 +447,9 @@ enum FieldIdEnum XMLTextFieldExport::MapFieldName(
// a) find prelim. FIELD_ID via aFieldServiceMapping
// check for non-empty service name
- DBG_ASSERT(!sFieldName.isEmpty(), "no valid service name!");
+ DBG_ASSERT(!sFieldName.empty(), "no valid service name!");
enum FieldIdEnum nToken = FIELD_ID_UNKNOWN;
- if (!sFieldName.isEmpty())
+ if (!sFieldName.empty())
{
// map name to prelim. ID
bool bRet = SvXMLUnitConverter::convertEnum(