summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-01-28 20:29:16 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-29 09:25:12 +0100
commit1250aecd71fabde4dba990bfceb61bbe8e06b8ea (patch)
tree3c42ffdf68b7e81aba29228631a8cd34e2f11830 /svx
parent4f3987e0b1a995431478769c898b5ef151745254 (diff)
loplugin:stringviewparam extend to new..
O[U]StringBuffer methods Change-Id: I0ffbc33d54ae7c98b5652434f3370ee4f819f6f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110090 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/DescriptionGenerator.hxx2
-rw-r--r--svx/source/accessibility/AccessibleControlShape.cxx2
-rw-r--r--svx/source/accessibility/DescriptionGenerator.cxx5
-rw-r--r--svx/source/fmcomp/gridcell.cxx4
4 files changed, 8 insertions, 5 deletions
diff --git a/svx/inc/DescriptionGenerator.hxx b/svx/inc/DescriptionGenerator.hxx
index 5895b310b3fe..daf169f9b478 100644
--- a/svx/inc/DescriptionGenerator.hxx
+++ b/svx/inc/DescriptionGenerator.hxx
@@ -104,7 +104,7 @@ public:
String to append to the current description. It is not modified
in any way.
*/
- void AppendString(const OUString& sString);
+ void AppendString(std::u16string_view sString);
private:
/// Reference to the shape from which the properties are extracted.
diff --git a/svx/source/accessibility/AccessibleControlShape.cxx b/svx/source/accessibility/AccessibleControlShape.cxx
index 79cba1292c2c..b5eda7f92891 100644
--- a/svx/source/accessibility/AccessibleControlShape.cxx
+++ b/svx/source/accessibility/AccessibleControlShape.cxx
@@ -343,7 +343,7 @@ OUString
aDG.Initialize ("Unknown accessible control shape");
if (mxShape.is())
{
- aDG.AppendString ("service name=");
+ aDG.AppendString (u"service name=");
aDG.AppendString (mxShape->getShapeType());
}
}
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx
index 2ed65c5dbf38..2a473ed40563 100644
--- a/svx/source/accessibility/DescriptionGenerator.cxx
+++ b/svx/source/accessibility/DescriptionGenerator.cxx
@@ -133,7 +133,10 @@ void DescriptionGenerator::AddProperty(const OUString& sPropertyName, PropertyTy
}
}
-void DescriptionGenerator::AppendString(const OUString& sString) { msDescription.append(sString); }
+void DescriptionGenerator::AppendString(std::u16string_view sString)
+{
+ msDescription.append(sString);
+}
/** Search for the given color in the global color table. If found append
its name to the description. Otherwise append its RGB tuple.
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index ed5d851bf7ad..ccb3b4469b3c 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -3070,10 +3070,10 @@ IMPL_LINK_NOARG(DbFilterField, OnClick, weld::Button&, void)
switch (eState)
{
case TRISTATE_TRUE:
- ::dbtools::getBooleanComparisonPredicate("", true, nBooleanComparisonMode, aTextBuf);
+ ::dbtools::getBooleanComparisonPredicate(u"", true, nBooleanComparisonMode, aTextBuf);
break;
case TRISTATE_FALSE:
- ::dbtools::getBooleanComparisonPredicate("", false, nBooleanComparisonMode, aTextBuf);
+ ::dbtools::getBooleanComparisonPredicate(u"", false, nBooleanComparisonMode, aTextBuf);
break;
case TRISTATE_INDET:
break;