From 1da69081732c8a429840edaaf10cfb789ea68df8 Mon Sep 17 00:00:00 2001 From: Noel Date: Thu, 28 Jan 2021 11:01:28 +0200 Subject: add string_view variants of methods to O[U]StringBuffer and update the stringview loplugin to detect cases where we can use these new methods. Change-Id: I998efe02e35c8efcb3abfb4d7186165bbe6dfb2c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110046 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/dialogs/FontFeaturesDialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source/dialogs') diff --git a/cui/source/dialogs/FontFeaturesDialog.cxx b/cui/source/dialogs/FontFeaturesDialog.cxx index b9120b0371c8..fae448b6a283 100644 --- a/cui/source/dialogs/FontFeaturesDialog.cxx +++ b/cui/source/dialogs/FontFeaturesDialog.cxx @@ -182,7 +182,7 @@ OUString FontFeaturesDialog::createFontNameWithFeatures() if (sal_uInt32(rItem.m_xCheck->get_active()) != rItem.m_nDefault) { if (!bFirst) - sNameSuffix.append(OUString(vcl::font::FeatureSeparator)); + sNameSuffix.append(vcl::font::FeatureSeparator); else bFirst = false; @@ -197,7 +197,7 @@ OUString FontFeaturesDialog::createFontNameWithFeatures() if (nSelection != int(rItem.m_nDefault)) { if (!bFirst) - sNameSuffix.append(OUString(vcl::font::FeatureSeparator)); + sNameSuffix.append(vcl::font::FeatureSeparator); else bFirst = false; -- cgit