diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-28 20:29:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-29 09:25:12 +0100 |
commit | 1250aecd71fabde4dba990bfceb61bbe8e06b8ea (patch) | |
tree | 3c42ffdf68b7e81aba29228631a8cd34e2f11830 /svx/source | |
parent | 4f3987e0b1a995431478769c898b5ef151745254 (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/source')
-rw-r--r-- | svx/source/accessibility/AccessibleControlShape.cxx | 2 | ||||
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 5 | ||||
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 |
3 files changed, 7 insertions, 4 deletions
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; |