summaryrefslogtreecommitdiff
path: root/xmlhelp
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-14 14:56:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-25 13:29:11 +0200
commit1bbcc3fdf312971ffb681b332f47369739d95dde (patch)
tree649e44c2e46b2c16973333300103cd152b9523ac /xmlhelp
parentb84ef4d67eaf9f9fd7fd700ca05339cb0cdff742 (diff)
O[U]String overloads that return view for rest parameter
Add new overloads to OUString methods that have a "OUString* rest" style parameter. Instead return a view, which does not require allocation. To avoid overload ambiguity, split the methods into different variants that do not use default parameters. Change-Id: I1aa366115750f1f7ea4fe665804195f59f7c4b69 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167632 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'xmlhelp')
-rw-r--r--xmlhelp/source/cxxhelp/provider/databases.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx
index 83083e7d0e16..86d521f11d89 100644
--- a/xmlhelp/source/cxxhelp/provider/databases.cxx
+++ b/xmlhelp/source/cxxhelp/provider/databases.cxx
@@ -289,7 +289,7 @@ const std::vector< OUString >& Databases::getModuleList( const OUString& Languag
fileName = aStatus.getFileName();
// Check, whether fileName is of the form *.cfg
- if (!fileName.endsWithIgnoreAsciiCase(".cfg", &fileName)) {
+ if (!fileName.endsWithIgnoreAsciiCase(u".cfg", &fileName)) {
continue;
}
fileName = fileName.toAsciiLowerCase();