avmedia/source/framework/soundhandler.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit b65f295698d3c09a1d18336cb17ac29487266400
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Nov 5 11:14:26 2023 +0300
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Nov 5 19:54:18 2023 +0100

    tdf#158068: an example of "abc" -> u"abc"_ustr conversion
    
    Change-Id: I1225548ebc313cac98c4b924a8fb53f53bada76d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158946
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/avmedia/source/framework/soundhandler.cxx 
b/avmedia/source/framework/soundhandler.cxx
index 8d559457ef83..d3cc8b724d39 100644
--- a/avmedia/source/framework/soundhandler.cxx
+++ b/avmedia/source/framework/soundhandler.cxx
@@ -102,7 +102,7 @@ sal_Bool SAL_CALL SoundHandler::supportsService( const 
OUString& sServiceName )
 // XServiceInfo
 css::uno::Sequence< OUString > SAL_CALL 
SoundHandler::getSupportedServiceNames()
 {
-    return { "com.sun.star.frame.ContentHandler" };
+    return { u"com.sun.star.frame.ContentHandler"_ustr };
 }
 
 
/*-************************************************************************************************************
@@ -253,7 +253,7 @@ OUString SAL_CALL SoundHandler::detect( css::uno::Sequence< 
css::beans::Property
         // I think we can the following ones:
         //  a) look for given extension of url to map our type decision HARD 
CODED!!!
         //  b) return preferred type every time... it's easy :-)
-        sTypeName = "wav_Wave_Audio_File";
+        sTypeName = u"wav_Wave_Audio_File"_ustr;
         aDescriptor[utl::MediaDescriptor::PROP_TYPENAME] <<= sTypeName;
         aDescriptor >> lDescriptor;
     }
commit eae5559af6bbf7727431fcb44e79492adbd59c41
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Nov 5 11:10:00 2023 +0300
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Nov 5 19:54:11 2023 +0100

    tdf#158067: an example of OUStringLiteral -> operator u""_ustr replacement
    
    Change-Id: I0a15d1d30ee59d8f574a5a9c79ab11e316dbe76c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158945
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/avmedia/source/framework/soundhandler.cxx 
b/avmedia/source/framework/soundhandler.cxx
index 14870c9ee9be..8d559457ef83 100644
--- a/avmedia/source/framework/soundhandler.cxx
+++ b/avmedia/source/framework/soundhandler.cxx
@@ -85,14 +85,12 @@ css::uno::Sequence< css::uno::Type > SAL_CALL 
SoundHandler::getTypes()
     return aTypeCollection.getTypes();
 }
 
-constexpr OUStringLiteral IMPLEMENTATIONNAME_SOUNDHANDLER = 
u"com.sun.star.comp.framework.SoundHandler";
-
 
/*===========================================================================================================*/
 /* XServiceInfo */
 
/*===========================================================================================================*/
 OUString SAL_CALL SoundHandler::getImplementationName()
 {
-    return IMPLEMENTATIONNAME_SOUNDHANDLER;
+    return u"com.sun.star.comp.framework.SoundHandler"_ustr;
 }
 
 // XServiceInfo

Reply via email to