Kaydet (Commit) a33b4428 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

avmedia: Use appropriate OUString functions on string constants

Change-Id: Ie2e2737c1a3eafd9da2472ef354624b67b09ff80
üst b9835299
......@@ -107,7 +107,6 @@ css::uno::Sequence< css::uno::Type > SAL_CALL SoundHandler::getTypes() throw( cs
}
#define IMPLEMENTATIONNAME_SOUNDHANDLER OUString("com.sun.star.comp.framework.SoundHandler")
#define SERVICENAME_CONTENTHANDLER OUString("com.sun.star.frame.ContentHandler")
/*===========================================================================================================*/
/* XServiceInfo */
......@@ -133,7 +132,7 @@ css::uno::Sequence< OUString > SAL_CALL SoundHandler::getSupportedServiceNames()
css::uno::Sequence< OUString > SoundHandler::impl_getStaticSupportedServiceNames()
{
css::uno::Sequence< OUString > seqServiceNames( 1 );
seqServiceNames.getArray() [0] = SERVICENAME_CONTENTHANDLER;
seqServiceNames.getArray() [0] = "com.sun.star.frame.ContentHandler";
return seqServiceNames;
}
......
......@@ -64,7 +64,7 @@ uno::Sequence< OUString > SAL_CALL OGLFrameGrabber::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.media.FrameGrabber_OpenGL");
aRet[0] = "com.sun.star.media.FrameGrabber_OpenGL";
return aRet;
}
......
......@@ -56,7 +56,7 @@ uno::Sequence< OUString > SAL_CALL OGLManager::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception )
{
::uno::Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.media.Manager_OpenGL");
aRet[0] = "com.sun.star.media.Manager_OpenGL";
return aRet;
}
......
......@@ -353,7 +353,7 @@ uno::Sequence< OUString > SAL_CALL OGLPlayer::getSupportedServiceNames()
throw ( uno::RuntimeException, std::exception )
{
uno::Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.media.Player_OpenGL");
aRet[0] = "com.sun.star.media.Player_OpenGL";
return aRet;
}
......
......@@ -71,7 +71,7 @@ sal_Bool SAL_CALL OGLWindow::supportsService( const OUString& rServiceName ) thr
uno::Sequence< OUString > SAL_CALL OGLWindow::getSupportedServiceNames() throw (css::uno::RuntimeException, std::exception)
{
uno::Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.media.Window_OpenGL");
aRet[0] = "com.sun.star.media.Window_OpenGL";
return aRet;
}
......
......@@ -129,7 +129,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL FrameGrabber::getSupportedServiceNames
throw (uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( AVMEDIA_QUICKTIME_FRAMEGRABBER_SERVICENAME );
aRet[0] = AVMEDIA_QUICKTIME_FRAMEGRABBER_SERVICENAME;
return aRet;
}
......
......@@ -80,7 +80,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL Manager::getSupportedServiceNames( )
throw (uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( AVMEDIA_QUICKTIME_MANAGER_SERVICENAME );
aRet[0] = AVMEDIA_QUICKTIME_MANAGER_SERVICENAME;
return aRet;
}
......
......@@ -383,7 +383,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL Player::getSupportedServiceNames( )
throw (uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( AVMEDIA_QUICKTIME_PLAYER_SERVICENAME );
aRet[0] = AVMEDIA_QUICKTIME_PLAYER_SERVICENAME;
return aRet;
}
......
......@@ -274,7 +274,7 @@ uno::Sequence< ::rtl::OUString > SAL_CALL Window::getSupportedServiceNames( )
throw (uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( AVMEDIA_QUICKTIME_WINDOW_SERVICENAME );
aRet[0] = AVMEDIA_QUICKTIME_WINDOW_SERVICENAME;
return aRet;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment