diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-09-06 19:38:11 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-09-08 20:28:40 +0000 |
commit | 1b9c7dae5a62c91e51a03f3d5a1c452a494a08d0 (patch) | |
tree | 6d140e06706683d81a55207ca93228a7b5a2544d /vbahelper/inc | |
parent | 340f1c59f1969ae00be7c0a6987c54a05ab97940 (diff) |
More OUString cleanup in vbahelper
Change-Id: Ibf1661c612486a3d5259d0e78dd03294d5eeef76
Reviewed-on: https://gerrit.libreoffice.org/576
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
Diffstat (limited to 'vbahelper/inc')
-rw-r--r-- | vbahelper/inc/vbahelper/vbahelperinterface.hxx | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/vbahelper/inc/vbahelper/vbahelperinterface.hxx b/vbahelper/inc/vbahelper/vbahelperinterface.hxx index 2a9a20f5b90a..ee963db223b4 100644 --- a/vbahelper/inc/vbahelper/vbahelperinterface.hxx +++ b/vbahelper/inc/vbahelper/vbahelperinterface.hxx @@ -63,8 +63,8 @@ public: InheritedHelperInterfaceImpl() {} InheritedHelperInterfaceImpl( const css::uno::Reference< css::uno::XComponentContext >& xContext ) : mxContext( xContext ) {} InheritedHelperInterfaceImpl( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext ) : mxParent( xParent ), mxContext( xContext ) {} - virtual rtl::OUString getServiceImplName() = 0; - virtual css::uno::Sequence<rtl::OUString> getServiceNames() = 0; + virtual OUString getServiceImplName() = 0; + virtual css::uno::Sequence<OUString> getServiceNames() = 0; // XHelperInterface Methods virtual ::sal_Int32 SAL_CALL getCreator() throw (css::script::BasicErrorException, css::uno::RuntimeException) @@ -77,24 +77,24 @@ public: // The application could certainly be passed around in the context - seems // to make sense css::uno::Reference< css::container::XNameAccess > xNameAccess( mxContext, css::uno::UNO_QUERY_THROW ); - return xNameAccess->getByName( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Application" ) ) ); + return xNameAccess->getByName( "Application" ); } // XServiceInfo Methods - virtual ::rtl::OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException) { return getServiceImplName(); } - virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (css::uno::RuntimeException) + virtual OUString SAL_CALL getImplementationName( ) throw (css::uno::RuntimeException) { return getServiceImplName(); } + virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (css::uno::RuntimeException) { - css::uno::Sequence< rtl::OUString > sServices = getSupportedServiceNames(); - const rtl::OUString* pStart = sServices.getConstArray(); - const rtl::OUString* pEnd = pStart + sServices.getLength(); + css::uno::Sequence< OUString > sServices = getSupportedServiceNames(); + const OUString* pStart = sServices.getConstArray(); + const OUString* pEnd = pStart + sServices.getLength(); for ( ; pStart != pEnd ; ++pStart ) if ( (*pStart).equals( ServiceName ) ) return sal_True; return sal_False; } - virtual css::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException) + virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw (css::uno::RuntimeException) { - css::uno::Sequence< rtl::OUString > aNames = getServiceNames(); + css::uno::Sequence< OUString > aNames = getServiceNames(); return aNames; } }; @@ -136,9 +136,9 @@ public: implementation name. */ #define VBAHELPER_IMPL_GETSERVICEIMPLNAME( classname ) \ -::rtl::OUString classname::getServiceImplName() \ +OUString classname::getServiceImplName() \ { \ - return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( #classname ) ); \ + return OUString( RTL_CONSTASCII_USTRINGPARAM( #classname ) ); \ } // ---------------------------------------------------------------------------- @@ -147,13 +147,13 @@ public: service name. */ #define VBAHELPER_IMPL_GETSERVICENAMES( classname, servicename ) \ -css::uno::Sequence< ::rtl::OUString > classname::getServiceNames() \ +css::uno::Sequence< OUString > classname::getServiceNames() \ { \ - static css::uno::Sequence< ::rtl::OUString > saServiceNames; \ + static css::uno::Sequence< OUString > saServiceNames; \ if( saServiceNames.getLength() == 0 ) \ { \ saServiceNames.realloc( 1 ); \ - saServiceNames[ 0 ] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( servicename ) ); \ + saServiceNames[ 0 ] = servicename; \ } \ return saServiceNames; \ } @@ -165,8 +165,8 @@ css::uno::Sequence< ::rtl::OUString > classname::getServiceNames() \ declaration. */ #define VBAHELPER_DECL_XHELPERINTERFACE \ - virtual ::rtl::OUString getServiceImplName(); \ - virtual css::uno::Sequence< ::rtl::OUString > getServiceNames(); + virtual OUString getServiceImplName(); \ + virtual css::uno::Sequence< OUString > getServiceNames(); // ---------------------------------------------------------------------------- |