Kaydet (Commit) 1bbe1743 authored tarafından Ricardo Montania's avatar Ricardo Montania Kaydeden (comit) Olivier Hallot

OUString cleanup in animations

Change-Id: Ib858f9fa709d72539f71a6473a4ecb519d68e98e
Reviewed-on: https://gerrit.libreoffice.org/584Reviewed-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
Tested-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
üst e4b634fc
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
using ::osl::Mutex; using ::osl::Mutex;
using ::osl::Guard; using ::osl::Guard;
using ::rtl::OUString;
using ::cppu::OInterfaceContainerHelper; using ::cppu::OInterfaceContainerHelper;
using ::cppu::OInterfaceIteratorHelper; using ::cppu::OInterfaceIteratorHelper;
using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Any;
...@@ -515,12 +514,12 @@ Reference< XInterface > SAL_CALL createInstance_##N( const Reference< XComponent ...@@ -515,12 +514,12 @@ Reference< XInterface > SAL_CALL createInstance_##N( const Reference< XComponent
}\ }\
OUString getImplementationName_##N()\ OUString getImplementationName_##N()\
{\ {\
return OUString( RTL_CONSTASCII_USTRINGPARAM ( IN ) );\ return OUString( IN );\
}\ }\
Sequence<OUString> getSupportedServiceNames_##N(void)\ Sequence<OUString> getSupportedServiceNames_##N(void)\
{\ {\
Sequence<OUString> aRet(1);\ Sequence<OUString> aRet(1);\
aRet.getArray()[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( SN ));\ aRet.getArray()[0] = SN;\
return aRet;\ return aRet;\
} }
......
...@@ -24,8 +24,8 @@ extern rtl_StandardModuleCount g_moduleCount; ...@@ -24,8 +24,8 @@ extern rtl_StandardModuleCount g_moduleCount;
#define DECL_NODE_FACTORY(N)\ #define DECL_NODE_FACTORY(N)\
extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance_##N( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rSMgr ) throw (::com::sun::star::uno::Exception);\ extern ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL createInstance_##N( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & rSMgr ) throw (::com::sun::star::uno::Exception);\
extern ::rtl::OUString getImplementationName_##N();\ extern OUString getImplementationName_##N();\
extern ::com::sun::star::uno::Sequence< ::rtl::OUString> getSupportedServiceNames_##N(void) extern ::com::sun::star::uno::Sequence< OUString> getSupportedServiceNames_##N(void)
DECL_NODE_FACTORY( PAR ); DECL_NODE_FACTORY( PAR );
DECL_NODE_FACTORY( SEQ ); DECL_NODE_FACTORY( SEQ );
......
...@@ -70,12 +70,12 @@ namespace animcore ...@@ -70,12 +70,12 @@ namespace animcore
virtual uno::Sequence< animations::TargetProperties > SAL_CALL createInitialTargetProperties( const uno::Reference< animations::XAnimationNode >& rootNode ) throw (uno::RuntimeException); virtual uno::Sequence< animations::TargetProperties > SAL_CALL createInitialTargetProperties( const uno::Reference< animations::XAnimationNode >& rootNode ) throw (uno::RuntimeException);
// XServiceInfo // XServiceInfo
virtual ::rtl::OUString SAL_CALL getImplementationName() throw( uno::RuntimeException ); virtual OUString SAL_CALL getImplementationName() throw( uno::RuntimeException );
virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException ); virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( uno::RuntimeException );
virtual uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw( uno::RuntimeException ); virtual uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( uno::RuntimeException );
// XServiceName // XServiceName
virtual ::rtl::OUString SAL_CALL getServiceName( ) throw (uno::RuntimeException); virtual OUString SAL_CALL getServiceName( ) throw (uno::RuntimeException);
protected: protected:
~TargetPropertiesCreator(); // we're a ref-counted UNO class. _We_ destroy ourselves. ~TargetPropertiesCreator(); // we're a ref-counted UNO class. _We_ destroy ourselves.
...@@ -95,15 +95,15 @@ namespace animcore ...@@ -95,15 +95,15 @@ namespace animcore
return TargetPropertiesCreator::createInstance( rSMgr ); return TargetPropertiesCreator::createInstance( rSMgr );
} }
::rtl::OUString getImplementationName_TargetPropertiesCreator() OUString getImplementationName_TargetPropertiesCreator()
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( IMPLEMENTATION_NAME ) ); return OUString( IMPLEMENTATION_NAME );
} }
uno::Sequence< ::rtl::OUString > getSupportedServiceNames_TargetPropertiesCreator(void) uno::Sequence< OUString > getSupportedServiceNames_TargetPropertiesCreator(void)
{ {
uno::Sequence< ::rtl::OUString > aRet(1); uno::Sequence< OUString > aRet(1);
aRet.getArray()[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICE_NAME ) ); aRet.getArray()[0] = SERVICE_NAME;
return aRet; return aRet;
} }
...@@ -342,7 +342,7 @@ namespace animcore ...@@ -342,7 +342,7 @@ namespace animcore
if( !(aAny >>= bVisible) ) if( !(aAny >>= bVisible) )
{ {
// try to extract string // try to extract string
::rtl::OUString aString; OUString aString;
if( (aAny >>= aString) ) if( (aAny >>= aString) )
{ {
// we also take the strings "true" and "false", // we also take the strings "true" and "false",
...@@ -461,28 +461,28 @@ namespace animcore ...@@ -461,28 +461,28 @@ namespace animcore
} }
// XServiceInfo // XServiceInfo
::rtl::OUString SAL_CALL TargetPropertiesCreator::getImplementationName() throw( uno::RuntimeException ) OUString SAL_CALL TargetPropertiesCreator::getImplementationName() throw( uno::RuntimeException )
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) ); return OUString( IMPLEMENTATION_NAME );
} }
sal_Bool SAL_CALL TargetPropertiesCreator::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException ) sal_Bool SAL_CALL TargetPropertiesCreator::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException )
{ {
return ServiceName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM(SERVICE_NAME)); return ServiceName.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM(SERVICE_NAME));
} }
uno::Sequence< ::rtl::OUString > SAL_CALL TargetPropertiesCreator::getSupportedServiceNames() throw( uno::RuntimeException ) uno::Sequence< OUString > SAL_CALL TargetPropertiesCreator::getSupportedServiceNames() throw( uno::RuntimeException )
{ {
uno::Sequence< ::rtl::OUString > aRet(1); uno::Sequence< OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) ); aRet[0] = SERVICE_NAME;
return aRet; return aRet;
} }
// XServiceName // XServiceName
::rtl::OUString SAL_CALL TargetPropertiesCreator::getServiceName( ) throw (uno::RuntimeException) OUString SAL_CALL TargetPropertiesCreator::getServiceName( ) throw (uno::RuntimeException)
{ {
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( SERVICE_NAME ) ); return OUString( SERVICE_NAME );
} }
} // namespace animcore } // namespace animcore
......
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