diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-17 13:33:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-17 14:05:21 +0100 |
commit | 95283f63fd1095121c30f7fc23259f03a5382955 (patch) | |
tree | 120fe3ecfafd9604f94b11a9c08768647910b950 /xmloff/source/text/txtflde.cxx | |
parent | a8e882b5aa7436395e9e3da0316f45690260166b (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.cxx | 6 |
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( |