summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-12 10:20:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-12 10:20:55 +0100
commit66b4128f89680442911c2491a72c74b6856332c5 (patch)
treed3db9c4554d25b26805033e3040eb7e4f7c0b39a /avmedia
parent1a77081b3d88a222c70634c266dbaabbc444d660 (diff)
avmedia: Use appropriate OUString functions on string constants
Change-Id: I1abbe02b6a449d61d6bed5a7659f81ec4cf985fe
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/macavf/macavfuno.mm4
-rw-r--r--avmedia/source/vlc/wrapper/SymbolLoader.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/avmedia/source/macavf/macavfuno.mm b/avmedia/source/macavf/macavfuno.mm
index 0b95913fb816..d313324774d4 100644
--- a/avmedia/source/macavf/macavfuno.mm
+++ b/avmedia/source/macavf/macavfuno.mm
@@ -34,11 +34,11 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL avmediaMacAVF_component_getFactor
if( rtl_str_compare( pImplName, AVMEDIA_MACAVF_MANAGER_IMPLEMENTATIONNAME ) == 0 )
{
- const ::rtl::OUString aServiceName( ::rtl::OUString::createFromAscii( AVMEDIA_MACAVF_MANAGER_SERVICENAME ) );
+ const ::rtl::OUString aServiceName( AVMEDIA_MACAVF_MANAGER_SERVICENAME );
xFactory = uno::Reference< lang::XSingleServiceFactory >( ::cppu::createSingleFactory(
reinterpret_cast< lang::XMultiServiceFactory* >( pServiceManager ),
- ::rtl::OUString::createFromAscii( AVMEDIA_MACAVF_MANAGER_IMPLEMENTATIONNAME ),
+ AVMEDIA_MACAVF_MANAGER_IMPLEMENTATIONNAME,
create_MediaPlayer, uno::Sequence< ::rtl::OUString >( &aServiceName, 1 ) ) );
}
diff --git a/avmedia/source/vlc/wrapper/SymbolLoader.hxx b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
index 2426dea706dc..e506f26b7433 100644
--- a/avmedia/source/vlc/wrapper/SymbolLoader.hxx
+++ b/avmedia/source/vlc/wrapper/SymbolLoader.hxx
@@ -93,9 +93,9 @@ namespace
bool InitApiMap( const ApiMap ( &pMap )[N] )
{
#if defined( LINUX ) || defined( MACOSX )
- const OUString& fullPath = OUString::createFromAscii(LibName);
+ OUString const fullPath(LibName);
#elif defined( WNT )
- const OUString& fullPath = GetVLCPath() + OUString::createFromAscii(LibName);
+ OUString const fullPath(GetVLCPath() + LibName);
#endif
SAL_INFO("avmedia", fullPath);