summaryrefslogtreecommitdiff
path: root/avmedia
diff options
context:
space:
mode:
authorRicardo Montania <ricardo@linuxafundo.com.br>2012-09-21 12:19:04 -0300
committerNoel Power <noel.power@suse.com>2012-09-21 15:58:01 +0000
commit6c98b12cd6b21ceb56993204037f080af097d327 (patch)
tree5c3b915120285a6bbac4e8d2012a09cb7c18b31d /avmedia
parent207aebf733cc568845cea5c2aeff78493e056b9a (diff)
::rtl::OUString to OUString in avmedia
Change-Id: Id62d30e33ad68ffa6d3199a181b002155f224732 Reviewed-on: https://gerrit.libreoffice.org/668 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'avmedia')
-rw-r--r--avmedia/source/quicktime/window.hxx6
-rw-r--r--avmedia/source/viewer/mediawindow.cxx32
-rw-r--r--avmedia/source/viewer/mediawindowbase_impl.cxx10
3 files changed, 24 insertions, 24 deletions
diff --git a/avmedia/source/quicktime/window.hxx b/avmedia/source/quicktime/window.hxx
index a9689c4fee1d..3ba47908ed5f 100644
--- a/avmedia/source/quicktime/window.hxx
+++ b/avmedia/source/quicktime/window.hxx
@@ -88,9 +88,9 @@ public:
virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException);
// XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual OUString SAL_CALL getImplementationName( ) throw (::com::sun::star::uno::RuntimeException);
+ virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
+ virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (::com::sun::star::uno::RuntimeException);
private:
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx
index e6887d71b6a4..bfe9d60c941a 100644
--- a/avmedia/source/viewer/mediawindow.cxx
+++ b/avmedia/source/viewer/mediawindow.cxx
@@ -70,15 +70,15 @@ MediaWindow::~MediaWindow()
// -------------------------------------------------------------------------
-void MediaWindow::setURL( const ::rtl::OUString& rURL )
+void MediaWindow::setURL( const OUString& rURL )
{
if( mpImpl )
- mpImpl->setURL( rURL, ::rtl::OUString() );
+ mpImpl->setURL( rURL, OUString() );
}
// -------------------------------------------------------------------------
-const ::rtl::OUString& MediaWindow::getURL() const
+const OUString& MediaWindow::getURL() const
{
return mpImpl->getURL();
}
@@ -238,24 +238,24 @@ void MediaWindow::getMediaFilters( FilterNameVector& rFilterNameVector )
for( size_t i = 0; i < SAL_N_ELEMENTS(pFilters); i += 2 )
{
- rFilterNameVector.push_back( ::std::make_pair< ::rtl::OUString, ::rtl::OUString >(
- ::rtl::OUString::createFromAscii(pFilters[i]),
- ::rtl::OUString::createFromAscii(pFilters[i+1]) ) );
+ rFilterNameVector.push_back( ::std::make_pair< OUString, OUString >(
+ OUString::createFromAscii(pFilters[i]),
+ OUString::createFromAscii(pFilters[i+1]) ) );
}
}
// -------------------------------------------------------------------------
bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
- ::rtl::OUString& rURL, bool *const o_pbLink)
+ OUString& rURL, bool *const o_pbLink)
{
::sfx2::FileDialogHelper aDlg( (o_pbLink)
? ui::dialogs::TemplateDescription::FILEOPEN_LINK_PREVIEW
: ui::dialogs::TemplateDescription::FILEOPEN_SIMPLE, 0 );
- static const ::rtl::OUString aWildcard( "*." );
+ static const OUString aWildcard( "*." );
FilterNameVector aFilters;
- const ::rtl::OUString aSeparator( ";" );
- ::rtl::OUString aAllTypes;
+ const OUString aSeparator( ";" );
+ OUString aAllTypes;
aDlg.SetTitle( AVMEDIA_RESID( (o_pbLink)
? AVMEDIA_STR_INSERTMEDIA_DLG : AVMEDIA_STR_OPENMEDIA_DLG ) );
@@ -279,7 +279,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
for( i = 0; i < aFilters.size(); ++i )
{
- ::rtl::OUString aTypes;
+ OUString aTypes;
for( sal_Int32 nIndex = 0; nIndex >= 0; )
{
@@ -328,7 +328,7 @@ bool MediaWindow::executeMediaURLDialog(Window* /* pParent */,
}
}
else if( !rURL.isEmpty() )
- rURL = ::rtl::OUString();
+ rURL = OUString();
return( !rURL.isEmpty() );
}
@@ -344,7 +344,7 @@ void MediaWindow::executeFormatErrorBox( Window* pParent )
// -------------------------------------------------------------------------
-bool MediaWindow::isMediaURL( const ::rtl::OUString& rURL, bool bDeep, Size* pPreferredSizePixel )
+bool MediaWindow::isMediaURL( const OUString& rURL, bool bDeep, Size* pPreferredSizePixel )
{
const INetURLObject aURL( rURL );
bool bRet = false;
@@ -378,7 +378,7 @@ bool MediaWindow::isMediaURL( const ::rtl::OUString& rURL, bool bDeep, Size* pPr
else
{
FilterNameVector aFilters;
- const ::rtl::OUString aExt( aURL.getExtension() );
+ const OUString aExt( aURL.getExtension() );
getMediaFilters( aFilters );
@@ -399,14 +399,14 @@ bool MediaWindow::isMediaURL( const ::rtl::OUString& rURL, bool bDeep, Size* pPr
// -------------------------------------------------------------------------
-uno::Reference< media::XPlayer > MediaWindow::createPlayer( const ::rtl::OUString& rURL )
+uno::Reference< media::XPlayer > MediaWindow::createPlayer( const OUString& rURL )
{
return priv::MediaWindowImpl::createPlayer( rURL );
}
// -------------------------------------------------------------------------
-uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const ::rtl::OUString& rURL,
+uno::Reference< graphic::XGraphic > MediaWindow::grabFrame( const OUString& rURL,
bool bAllowToCreateReplacementGraphic,
double fMediaTime )
{
diff --git a/avmedia/source/viewer/mediawindowbase_impl.cxx b/avmedia/source/viewer/mediawindowbase_impl.cxx
index ef2995c6466c..76538c1a9358 100644
--- a/avmedia/source/viewer/mediawindowbase_impl.cxx
+++ b/avmedia/source/viewer/mediawindowbase_impl.cxx
@@ -60,7 +60,7 @@ MediaWindowBaseImpl::~MediaWindowBaseImpl()
// -------------------------------------------------------------------------
-uno::Reference< media::XPlayer > MediaWindowBaseImpl::createPlayer( const ::rtl::OUString& rURL )
+uno::Reference< media::XPlayer > MediaWindowBaseImpl::createPlayer( const OUString& rURL )
{
uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
uno::Reference< media::XPlayer > xPlayer;
@@ -112,8 +112,8 @@ uno::Reference< media::XPlayer > MediaWindowBaseImpl::createPlayer( const ::rtl:
return xPlayer;
}
-void MediaWindowBaseImpl::setURL( const ::rtl::OUString& rURL,
- ::rtl::OUString const& rTempURL)
+void MediaWindowBaseImpl::setURL( const OUString& rURL,
+ OUString const& rTempURL)
{
if( rURL != getURL() )
{
@@ -127,7 +127,7 @@ void MediaWindowBaseImpl::setURL( const ::rtl::OUString& rURL,
}
mxPlayer.clear();
- mTempFileURL = ::rtl::OUString();
+ mTempFileURL = OUString();
if (rTempURL.getLength())
{
@@ -158,7 +158,7 @@ void MediaWindowBaseImpl::onURLChanged()
// ---------------------------------------------------------------------
-const ::rtl::OUString& MediaWindowBaseImpl::getURL() const
+const OUString& MediaWindowBaseImpl::getURL() const
{
return maFileURL;
}