summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-04 11:14:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-05 12:57:00 +0200
commit9f1701d01d9f664828356976d8592492f85b30f5 (patch)
treea91eaef0674591af87b06096fdd186283559a8de /fpicker
parentb8bb44161aeb6e00526a38343b63e678ce7d4a1a (diff)
use more o3tl::getToken
found by inspecting call sites of OUString::getToken Change-Id: I4269c7476c7aa46fac39528227e350568f0eb34a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132644 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/office/iodlg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 44a3fdca23ab..a7addbb10121 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -2267,10 +2267,10 @@ void SvtFileDialog::appendDefaultExtension(OUString& rFileName,
{
if (nPos+1<aType.getLength() && aType[nPos]=='*') // take care of a leading *
++nPos;
- const OUString aExt(aType.getToken( 0, FILEDIALOG_DEF_EXTSEP, nPos ));
- if (aExt.isEmpty())
+ const std::u16string_view aExt(o3tl::getToken(aType, 0, FILEDIALOG_DEF_EXTSEP, nPos ));
+ if (aExt.empty())
continue;
- if (aTemp.endsWith(aExt))
+ if (o3tl::ends_with(aTemp, aExt))
return;
}
while (nPos>=0);