summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/framework/mediaitem.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx
index 0a53cf5d4d39..7d249c604b6b 100644
--- a/avmedia/source/framework/mediaitem.cxx
+++ b/avmedia/source/framework/mediaitem.cxx
@@ -406,13 +406,13 @@ CreateStream(uno::Reference<embed::XStorage> const& xStorage,
if (xStorage->hasByName(filename))
{
- OUString basename;
- OUString suffix;
+ std::u16string_view basename;
+ std::u16string_view suffix;
sal_Int32 const nIndex(rFilename.lastIndexOf('.'));
if (0 < nIndex)
{
- basename = rFilename.copy(0, nIndex);
- suffix = rFilename.copy(nIndex);
+ basename = rFilename.subView(0, nIndex);
+ suffix = rFilename.subView(nIndex);
}
sal_Int32 count(0); // sigh... try to generate non-existent name
do