diff options
Diffstat (limited to 'comphelper/source/misc')
37 files changed, 376 insertions, 378 deletions
diff --git a/comphelper/source/misc/accessiblecontexthelper.cxx b/comphelper/source/misc/accessiblecontexthelper.cxx index c355d50c53f6..b3169fd77be0 100644 --- a/comphelper/source/misc/accessiblecontexthelper.cxx +++ b/comphelper/source/misc/accessiblecontexthelper.cxx @@ -292,7 +292,7 @@ namespace comphelper xParentContext = xParent->getAccessibleContext(); if ( !xParentContext.is() ) - throw IllegalAccessibleComponentStateException( ::rtl::OUString(), *this ); + throw IllegalAccessibleComponentStateException( OUString(), *this ); return xParentContext->getLocale(); } diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx index ab77650a7710..a724fdfe185e 100644 --- a/comphelper/source/misc/accessibletexthelper.cxx +++ b/comphelper/source/misc/accessibletexthelper.cxx @@ -104,7 +104,7 @@ namespace comphelper void OCommonAccessibleText::implGetGlyphBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex ) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( implIsValidIndex( nIndex, sText.getLength() ) ) { @@ -136,7 +136,7 @@ namespace comphelper sal_Bool OCommonAccessibleText::implGetWordBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex ) { sal_Bool bWord = sal_False; - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( implIsValidIndex( nIndex, sText.getLength() ) ) { @@ -168,7 +168,7 @@ namespace comphelper void OCommonAccessibleText::implGetSentenceBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex ) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( implIsValidIndex( nIndex, sText.getLength() ) ) { @@ -191,7 +191,7 @@ namespace comphelper void OCommonAccessibleText::implGetParagraphBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex ) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( implIsValidIndex( nIndex, sText.getLength() ) ) { @@ -217,7 +217,7 @@ namespace comphelper void OCommonAccessibleText::implGetLineBoundary( i18n::Boundary& rBoundary, sal_Int32 nIndex ) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); sal_Int32 nLength = sText.getLength(); if ( implIsValidIndex( nIndex, nLength ) || nIndex == nLength ) @@ -236,7 +236,7 @@ namespace comphelper sal_Unicode OCommonAccessibleText::getCharacter( sal_Int32 nIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( !implIsValidIndex( nIndex, sText.getLength() ) ) throw IndexOutOfBoundsException(); @@ -253,9 +253,9 @@ namespace comphelper // ----------------------------------------------------------------------------- - ::rtl::OUString OCommonAccessibleText::getSelectedText() throw (RuntimeException) + OUString OCommonAccessibleText::getSelectedText() throw (RuntimeException) { - ::rtl::OUString sText; + OUString sText; sal_Int32 nStartIndex; sal_Int32 nEndIndex; @@ -298,16 +298,16 @@ namespace comphelper // ----------------------------------------------------------------------------- - ::rtl::OUString OCommonAccessibleText::getText() throw (RuntimeException) + OUString OCommonAccessibleText::getText() throw (RuntimeException) { return implGetText(); } // ----------------------------------------------------------------------------- - ::rtl::OUString OCommonAccessibleText::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException) + OUString OCommonAccessibleText::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); if ( !implIsValidRange( nStartIndex, nEndIndex, sText.getLength() ) ) throw IndexOutOfBoundsException(); @@ -322,7 +322,7 @@ namespace comphelper TextSegment OCommonAccessibleText::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); sal_Int32 nLength = sText.getLength(); if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) @@ -427,7 +427,7 @@ namespace comphelper TextSegment OCommonAccessibleText::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); sal_Int32 nLength = sText.getLength(); if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) @@ -552,7 +552,7 @@ namespace comphelper TextSegment OCommonAccessibleText::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextType ) throw (IndexOutOfBoundsException, IllegalArgumentException, RuntimeException) { - ::rtl::OUString sText( implGetText() ); + OUString sText( implGetText() ); sal_Int32 nLength = sText.getLength(); if ( !implIsValidIndex( nIndex, nLength ) && nIndex != nLength ) @@ -679,8 +679,8 @@ namespace comphelper // ----------------------------------------------------------------------------- bool OCommonAccessibleText::implInitTextChangedEvent( - const rtl::OUString& rOldString, - const rtl::OUString& rNewString, + const OUString& rOldString, + const OUString& rNewString, ::com::sun::star::uno::Any& rDeleted, ::com::sun::star::uno::Any& rInserted) // throw() { @@ -811,7 +811,7 @@ namespace comphelper // ----------------------------------------------------------------------------- - ::rtl::OUString OAccessibleTextHelper::getSelectedText() throw (RuntimeException) + OUString OAccessibleTextHelper::getSelectedText() throw (RuntimeException) { OExternalLockGuard aGuard( this ); @@ -838,7 +838,7 @@ namespace comphelper // ----------------------------------------------------------------------------- - ::rtl::OUString OAccessibleTextHelper::getText() throw (RuntimeException) + OUString OAccessibleTextHelper::getText() throw (RuntimeException) { OExternalLockGuard aGuard( this ); @@ -847,7 +847,7 @@ namespace comphelper // ----------------------------------------------------------------------------- - ::rtl::OUString OAccessibleTextHelper::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException) + OUString OAccessibleTextHelper::getTextRange( sal_Int32 nStartIndex, sal_Int32 nEndIndex ) throw (IndexOutOfBoundsException, RuntimeException) { OExternalLockGuard aGuard( this ); diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx index 4996cb2d5d84..7f47f62f246a 100644 --- a/comphelper/source/misc/accessiblewrapper.cxx +++ b/comphelper/source/misc/accessiblewrapper.cxx @@ -278,8 +278,8 @@ namespace comphelper if ( xContext.is() ) { //TODO: do something - //::rtl::OUString sName = xContext->getAccessibleName(); - //::rtl::OUString sDescription = xContext->getAccessibleDescription(); + //OUString sName = xContext->getAccessibleName(); + //OUString sDescription = xContext->getAccessibleDescription(); //sal_Int32 nPlaceYourBreakpointHere = 0; } } @@ -573,13 +573,13 @@ namespace comphelper } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OAccessibleContextWrapper::getAccessibleDescription( ) throw (RuntimeException) + OUString SAL_CALL OAccessibleContextWrapper::getAccessibleDescription( ) throw (RuntimeException) { return m_xInnerContext->getAccessibleDescription(); } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OAccessibleContextWrapper::getAccessibleName( ) throw (RuntimeException) + OUString SAL_CALL OAccessibleContextWrapper::getAccessibleName( ) throw (RuntimeException) { return m_xInnerContext->getAccessibleName(); } diff --git a/comphelper/source/misc/anytostring.cxx b/comphelper/source/misc/anytostring.cxx index 030ca27eaa01..c9ddbeea5487 100644 --- a/comphelper/source/misc/anytostring.cxx +++ b/comphelper/source/misc/anytostring.cxx @@ -30,14 +30,14 @@ namespace comphelper { namespace { void appendTypeError( - rtl::OUStringBuffer & buf, typelib_TypeDescriptionReference * typeRef ) + OUStringBuffer & buf, typelib_TypeDescriptionReference * typeRef ) { buf.append( "<cannot get type description of type " ); buf.append( OUString::unacquired( &typeRef->pTypeName ) ); buf.append( static_cast< sal_Unicode >('>') ); } -inline void appendChar( rtl::OUStringBuffer & buf, sal_Unicode c ) +inline void appendChar( OUStringBuffer & buf, sal_Unicode c ) { if (c < ' ' || c > '~') { buf.append( "\\X" ); @@ -53,7 +53,7 @@ inline void appendChar( rtl::OUStringBuffer & buf, sal_Unicode c ) } //------------------------------------------------------------------------------ -void appendValue( rtl::OUStringBuffer & buf, +void appendValue( OUStringBuffer & buf, void const * val, typelib_TypeDescriptionReference * typeRef, bool prependType ) { @@ -202,7 +202,7 @@ void appendValue( rtl::OUStringBuffer & buf, break; case typelib_TypeClass_STRING: { buf.append( static_cast< sal_Unicode >('\"') ); - rtl::OUString const & str = rtl::OUString::unacquired( + OUString const & str = OUString::unacquired( static_cast< rtl_uString * const * >(val) ); sal_Int32 len = str.getLength(); for ( sal_Int32 pos = 0; pos < len; ++pos ) @@ -311,9 +311,9 @@ void appendValue( rtl::OUStringBuffer & buf, } // anon namespace //============================================================================== -rtl::OUString anyToString( uno::Any const & value ) +OUString anyToString( uno::Any const & value ) { - rtl::OUStringBuffer buf; + OUStringBuffer buf; appendValue( buf, value.getValue(), value.getValueTypeRef(), true ); return buf.makeStringAndClear(); } diff --git a/comphelper/source/misc/componentbase.cxx b/comphelper/source/misc/componentbase.cxx index 23318ba1bde1..d5066fbbbf65 100644 --- a/comphelper/source/misc/componentbase.cxx +++ b/comphelper/source/misc/componentbase.cxx @@ -40,14 +40,14 @@ namespace comphelper void ComponentBase::impl_checkDisposed_throw() const { if ( m_rBHelper.bDisposed ) - throw DisposedException( ::rtl::OUString(), getComponent() ); + throw DisposedException( OUString(), getComponent() ); } //-------------------------------------------------------------------- void ComponentBase::impl_checkInitialized_throw() const { if ( !m_bInitialized ) - throw NotInitializedException( ::rtl::OUString(), getComponent() ); + throw NotInitializedException( OUString(), getComponent() ); } //-------------------------------------------------------------------- diff --git a/comphelper/source/misc/componentcontext.cxx b/comphelper/source/misc/componentcontext.cxx index 4a5abe05859f..dded964ed549 100644 --- a/comphelper/source/misc/componentcontext.cxx +++ b/comphelper/source/misc/componentcontext.cxx @@ -64,7 +64,7 @@ namespace comphelper } //------------------------------------------------------------------------ - Any ComponentContext::getContextValueByName( const ::rtl::OUString& _rName ) const + Any ComponentContext::getContextValueByName( const OUString& _rName ) const { Any aReturn; try @@ -79,7 +79,7 @@ namespace comphelper } //------------------------------------------------------------------------ - Reference< XInterface > ComponentContext::createComponent( const ::rtl::OUString& _rServiceName ) const + Reference< XInterface > ComponentContext::createComponent( const OUString& _rServiceName ) const { Reference< XInterface > xComponent( m_xORB->createInstanceWithContext( _rServiceName, m_xContext ) @@ -90,7 +90,7 @@ namespace comphelper } //------------------------------------------------------------------------ - Reference< XInterface > ComponentContext::createComponentWithArguments( const ::rtl::OUString& _rServiceName, const Sequence< Any >& _rArguments ) const + Reference< XInterface > ComponentContext::createComponentWithArguments( const OUString& _rServiceName, const Sequence< Any >& _rArguments ) const { Reference< XInterface > xComponent( m_xORB->createInstanceWithArgumentsAndContext( _rServiceName, _rArguments, m_xContext ) diff --git a/comphelper/source/misc/componentmodule.cxx b/comphelper/source/misc/componentmodule.cxx index 0f686b21e9ef..a35a6779cb9d 100644 --- a/comphelper/source/misc/componentmodule.cxx +++ b/comphelper/source/misc/componentmodule.cxx @@ -116,10 +116,10 @@ namespace comphelper } //-------------------------------------------------------------------------- - void OModule::registerImplementation( const ::rtl::OUString& _rImplementationName, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& _rServiceNames, + void OModule::registerImplementation( const OUString& _rImplementationName, const ::com::sun::star::uno::Sequence< OUString >& _rServiceNames, ::cppu::ComponentFactoryFunc _pCreateFunction, FactoryInstantiation _pFactoryFunction ) { - ComponentDescription aComponent( _rImplementationName, _rServiceNames, ::rtl::OUString(), _pCreateFunction, _pFactoryFunction ); + ComponentDescription aComponent( _rImplementationName, _rServiceNames, OUString(), _pCreateFunction, _pFactoryFunction ); registerImplementation( aComponent ); } @@ -127,12 +127,12 @@ namespace comphelper void* OModule::getComponentFactory( const sal_Char* _pImplementationName ) { Reference< XInterface > xFactory( getComponentFactory( - ::rtl::OUString::createFromAscii( _pImplementationName ) ) ); + OUString::createFromAscii( _pImplementationName ) ) ); return xFactory.get(); } //-------------------------------------------------------------------------- - Reference< XInterface > OModule::getComponentFactory( const ::rtl::OUString& _rImplementationName ) + Reference< XInterface > OModule::getComponentFactory( const OUString& _rImplementationName ) { Reference< XInterface > xReturn; diff --git a/comphelper/source/misc/configuration.cxx b/comphelper/source/misc/configuration.cxx index 2935c4b0ce80..ea7643d36df9 100644 --- a/comphelper/source/misc/configuration.cxx +++ b/comphelper/source/misc/configuration.cxx @@ -71,7 +71,7 @@ OUString getDefaultLocale( } OUString extendLocalizedPath(OUString const & path, OUString const & locale) { - rtl::OUStringBuffer buf(path); + OUStringBuffer buf(path); buf.append("/['*"); SAL_WARN_IF( locale.match("*"), "comphelper", @@ -108,20 +108,20 @@ comphelper::ConfigurationChanges::ConfigurationChanges( {} void comphelper::ConfigurationChanges::setPropertyValue( - rtl::OUString const & path, css::uno::Any const & value) const + OUString const & path, css::uno::Any const & value) const { access_->replaceByHierarchicalName(path, value); } css::uno::Reference< css::container::XHierarchicalNameReplace > -comphelper::ConfigurationChanges::getGroup(rtl::OUString const & path) const +comphelper::ConfigurationChanges::getGroup(OUString const & path) const { return css::uno::Reference< css::container::XHierarchicalNameReplace >( access_->getByHierarchicalName(path), css::uno::UNO_QUERY_THROW); } css::uno::Reference< css::container::XNameContainer > -comphelper::ConfigurationChanges::getSet(rtl::OUString const & path) const +comphelper::ConfigurationChanges::getSet(OUString const & path) const { return css::uno::Reference< css::container::XNameContainer >( access_->getByHierarchicalName(path), css::uno::UNO_QUERY_THROW); @@ -143,14 +143,14 @@ comphelper::detail::ConfigurationWrapper::ConfigurationWrapper( comphelper::detail::ConfigurationWrapper::~ConfigurationWrapper() {} css::uno::Any comphelper::detail::ConfigurationWrapper::getPropertyValue( - rtl::OUString const & path) const + OUString const & path) const { return access_->getByHierarchicalName(path); } void comphelper::detail::ConfigurationWrapper::setPropertyValue( boost::shared_ptr< ConfigurationChanges > const & batch, - rtl::OUString const & path, com::sun::star::uno::Any const & value) const + OUString const & path, com::sun::star::uno::Any const & value) const { assert(batch.get() != 0); batch->setPropertyValue(path, value); @@ -158,7 +158,7 @@ void comphelper::detail::ConfigurationWrapper::setPropertyValue( css::uno::Any comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue( - rtl::OUString const & path) const + OUString const & path) const { return access_->getByHierarchicalName( extendLocalizedPath(path, getDefaultLocale(context_))); @@ -166,7 +166,7 @@ comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue( void comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue( boost::shared_ptr< ConfigurationChanges > const & batch, - rtl::OUString const & path, com::sun::star::uno::Any const & value) const + OUString const & path, com::sun::star::uno::Any const & value) const { assert(batch.get() != 0); batch->setPropertyValue(path, value); @@ -174,7 +174,7 @@ void comphelper::detail::ConfigurationWrapper::setLocalizedPropertyValue( css::uno::Reference< css::container::XHierarchicalNameAccess > comphelper::detail::ConfigurationWrapper::getGroupReadOnly( - rtl::OUString const & path) const + OUString const & path) const { return css::uno::Reference< css::container::XHierarchicalNameAccess >( (css::configuration::ReadOnlyAccess::create( @@ -186,7 +186,7 @@ comphelper::detail::ConfigurationWrapper::getGroupReadOnly( css::uno::Reference< css::container::XHierarchicalNameReplace > comphelper::detail::ConfigurationWrapper::getGroupReadWrite( boost::shared_ptr< ConfigurationChanges > const & batch, - rtl::OUString const & path) const + OUString const & path) const { assert(batch.get() != 0); return batch->getGroup(path); @@ -194,7 +194,7 @@ comphelper::detail::ConfigurationWrapper::getGroupReadWrite( css::uno::Reference< css::container::XNameAccess > comphelper::detail::ConfigurationWrapper::getSetReadOnly( - rtl::OUString const & path) const + OUString const & path) const { return css::uno::Reference< css::container::XNameAccess >( (css::configuration::ReadOnlyAccess::create( @@ -206,7 +206,7 @@ comphelper::detail::ConfigurationWrapper::getSetReadOnly( css::uno::Reference< css::container::XNameContainer > comphelper::detail::ConfigurationWrapper::getSetReadWrite( boost::shared_ptr< ConfigurationChanges > const & batch, - rtl::OUString const & path) const + OUString const & path) const { assert(batch.get() != 0); return batch->getSet(path); diff --git a/comphelper/source/misc/configurationhelper.cxx b/comphelper/source/misc/configurationhelper.cxx index e42a324eb58f..14b82de407ff 100644 --- a/comphelper/source/misc/configurationhelper.cxx +++ b/comphelper/source/misc/configurationhelper.cxx @@ -76,8 +76,8 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::openConfig(cons //----------------------------------------------- css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< css::uno::XInterface > xCFG , - const ::rtl::OUString& sRelPath, - const ::rtl::OUString& sKey ) + const OUString& sRelPath, + const OUString& sKey ) { css::uno::Reference< css::container::XHierarchicalNameAccess > xAccess(xCFG, css::uno::UNO_QUERY_THROW); @@ -85,7 +85,7 @@ css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< cs xAccess->getByHierarchicalName(sRelPath) >>= xProps; if (!xProps.is()) { - ::rtl::OUStringBuffer sMsg(256); + OUStringBuffer sMsg(256); sMsg.appendAscii("The requested path \""); sMsg.append (sRelPath ); sMsg.appendAscii("\" does not exists." ); @@ -99,8 +99,8 @@ css::uno::Any ConfigurationHelper::readRelativeKey(const css::uno::Reference< cs //----------------------------------------------- void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno::XInterface > xCFG , - const ::rtl::OUString& sRelPath, - const ::rtl::OUString& sKey , + const OUString& sRelPath, + const OUString& sKey , const css::uno::Any& aValue ) { css::uno::Reference< css::container::XHierarchicalNameAccess > xAccess(xCFG, css::uno::UNO_QUERY_THROW); @@ -109,7 +109,7 @@ void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno:: xAccess->getByHierarchicalName(sRelPath) >>= xProps; if (!xProps.is()) { - ::rtl::OUStringBuffer sMsg(256); + OUStringBuffer sMsg(256); sMsg.appendAscii("The requested path \""); sMsg.append (sRelPath ); sMsg.appendAscii("\" does not exists." ); @@ -123,15 +123,15 @@ void ConfigurationHelper::writeRelativeKey(const css::uno::Reference< css::uno:: //----------------------------------------------- css::uno::Reference< css::uno::XInterface > ConfigurationHelper::makeSureSetNodeExists(const css::uno::Reference< css::uno::XInterface > xCFG , - const ::rtl::OUString& sRelPathToSet, - const ::rtl::OUString& sSetNode ) + const OUString& sRelPathToSet, + const OUString& sSetNode ) { css::uno::Reference< css::container::XHierarchicalNameAccess > xAccess(xCFG, css::uno::UNO_QUERY_THROW); css::uno::Reference< css::container::XNameAccess > xSet; xAccess->getByHierarchicalName(sRelPathToSet) >>= xSet; if (!xSet.is()) { - ::rtl::OUStringBuffer sMsg(256); + OUStringBuffer sMsg(256); sMsg.appendAscii("The requested path \""); sMsg.append (sRelPathToSet ); sMsg.appendAscii("\" does not exists." ); @@ -157,9 +157,9 @@ css::uno::Reference< css::uno::XInterface > ConfigurationHelper::makeSureSetNode //----------------------------------------------- css::uno::Any ConfigurationHelper::readDirectKey(const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const ::rtl::OUString& sPackage, - const ::rtl::OUString& sRelPath, - const ::rtl::OUString& sKey , + const OUString& sPackage, + const OUString& sRelPath, + const OUString& sKey , sal_Int32 eMode ) { css::uno::Reference< css::uno::XInterface > xCFG = ConfigurationHelper::openConfig(rxContext, sPackage, eMode); @@ -168,9 +168,9 @@ css::uno::Any ConfigurationHelper::readDirectKey(const css::uno::Reference< css: //----------------------------------------------- void ConfigurationHelper::writeDirectKey(const css::uno::Reference< css::uno::XComponentContext >& rxContext, - const ::rtl::OUString& sPackage, - const ::rtl::OUString& sRelPath, - const ::rtl::OUString& sKey , + const OUString& sPackage, + const OUString& sRelPath, + const OUString& sKey , const css::uno::Any& aValue , sal_Int32 eMode ) { diff --git a/comphelper/source/misc/docpasswordhelper.cxx b/comphelper/source/misc/docpasswordhelper.cxx index 7ab4865e1bdb..b941cbd15049 100644 --- a/comphelper/source/misc/docpasswordhelper.cxx +++ b/comphelper/source/misc/docpasswordhelper.cxx @@ -27,7 +27,6 @@ #include <rtl/random.h> #include <string.h> -using ::rtl::OUString; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Exception; using ::com::sun::star::uno::Reference; @@ -44,13 +43,13 @@ namespace comphelper { // ============================================================================ -static uno::Sequence< sal_Int8 > GeneratePBKDF2Hash( const ::rtl::OUString& aPassword, const uno::Sequence< sal_Int8 >& aSalt, sal_Int32 nCount, sal_Int32 nHashLength ) +static uno::Sequence< sal_Int8 > GeneratePBKDF2Hash( const OUString& aPassword, const uno::Sequence< sal_Int8 >& aSalt, sal_Int32 nCount, sal_Int32 nHashLength ) { uno::Sequence< sal_Int8 > aResult; if ( !aPassword.isEmpty() && aSalt.getLength() && nCount && nHashLength ) { - ::rtl::OString aBytePass = ::rtl::OUStringToOString( aPassword, RTL_TEXTENCODING_UTF8 ); + OString aBytePass = OUStringToOString( aPassword, RTL_TEXTENCODING_UTF8 ); aResult.realloc( 16 ); rtl_digest_PBKDF2( reinterpret_cast < sal_uInt8 * > ( aResult.getArray() ), aResult.getLength(), @@ -71,7 +70,7 @@ IDocPasswordVerifier::~IDocPasswordVerifier() } // ============================================================================ -uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswordInfo( const ::rtl::OUString& aPassword ) +uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswordInfo( const OUString& aPassword ) { uno::Sequence< beans::PropertyValue > aResult; @@ -96,12 +95,12 @@ uno::Sequence< beans::PropertyValue > DocPasswordHelper::GenerateNewModifyPasswo } // ============================================================================ -sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const ::rtl::OUString& aPassword, const uno::Sequence< beans::PropertyValue >& aInfo ) +sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const OUString& aPassword, const uno::Sequence< beans::PropertyValue >& aInfo ) { sal_Bool bResult = sal_False; if ( !aPassword.isEmpty() && aInfo.getLength() ) { - ::rtl::OUString sAlgorithm; + OUString sAlgorithm; uno::Sequence< sal_Int8 > aSalt; uno::Sequence< sal_Int8 > aHash; sal_Int32 nCount = 0; @@ -134,7 +133,7 @@ sal_Bool DocPasswordHelper::IsModifyPasswordCorrect( const ::rtl::OUString& aPas // ============================================================================ sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32( - const ::rtl::OUString& aUString ) + const OUString& aUString ) { static sal_uInt16 pInitialCode[] = { 0xE1F0, // 1 @@ -211,12 +210,12 @@ sal_uInt32 DocPasswordHelper::GetWordHashAsUINT32( // ============================================================================ sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16( - const ::rtl::OUString& aUString, + const OUString& aUString, rtl_TextEncoding nEnc ) { sal_uInt16 nResult = 0; - ::rtl::OString aString = ::rtl::OUStringToOString( aUString, nEnc ); + OString aString = OUStringToOString( aUString, nEnc ); if ( !aString.isEmpty() && aString.getLength() <= SAL_MAX_UINT16 ) { @@ -236,7 +235,7 @@ sal_uInt16 DocPasswordHelper::GetXLHashAsUINT16( // ============================================================================ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( - const ::rtl::OUString& aUString, + const OUString& aUString, rtl_TextEncoding nEnc ) { sal_uInt16 nHash = GetXLHashAsUINT16( aUString, nEnc ); @@ -264,7 +263,7 @@ Sequence< sal_Int8 > DocPasswordHelper::GetXLHashAsSequence( // ============================================================================ -/*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateStd97Key( const ::rtl::OUString& aPassword, const uno::Sequence< sal_Int8 >& aDocId ) +/*static*/ uno::Sequence< sal_Int8 > DocPasswordHelper::GenerateStd97Key( const OUString& aPassword, const uno::Sequence< sal_Int8 >& aDocId ) { uno::Sequence< sal_Int8 > aResultKey; if ( !aPassword.isEmpty() && aDocId.getLength() == 16 ) diff --git a/comphelper/source/misc/docpasswordrequest.cxx b/comphelper/source/misc/docpasswordrequest.cxx index fbfc42ad3fbe..a674f7246026 100644 --- a/comphelper/source/misc/docpasswordrequest.cxx +++ b/comphelper/source/misc/docpasswordrequest.cxx @@ -25,7 +25,6 @@ #include <com/sun/star/task/XInteractionAbort.hpp> #include <com/sun/star/task/XInteractionPassword2.hpp> -using ::rtl::OUString; using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Type; using ::com::sun::star::uno::Reference; diff --git a/comphelper/source/misc/documentinfo.cxx b/comphelper/source/misc/documentinfo.cxx index 5039c2d9d805..a436575fda7a 100644 --- a/comphelper/source/misc/documentinfo.cxx +++ b/comphelper/source/misc/documentinfo.cxx @@ -59,12 +59,12 @@ namespace comphelper { //==================================================================== namespace { - ::rtl::OUString lcl_getTitle( const Reference< XInterface >& _rxComponent ) + OUString lcl_getTitle( const Reference< XInterface >& _rxComponent ) { Reference< XTitle > xTitle( _rxComponent, UNO_QUERY ); if ( xTitle.is() ) return xTitle->getTitle(); - return ::rtl::OUString(); + return OUString(); } } @@ -72,14 +72,14 @@ namespace comphelper { //= DocumentInfo //==================================================================== //-------------------------------------------------------------------- - ::rtl::OUString DocumentInfo::getDocumentTitle( const Reference< XModel >& _rxDocument ) + OUString DocumentInfo::getDocumentTitle( const Reference< XModel >& _rxDocument ) { - ::rtl::OUString sTitle; + OUString sTitle; if ( !_rxDocument.is() ) return sTitle; - ::rtl::OUString sDocURL; + OUString sDocURL; try { // 1. ask the model and the controller for their XTitle::getTitle @@ -96,7 +96,7 @@ namespace comphelper { // private:object as URL sDocURL = _rxDocument->getURL(); if ( sDocURL.matchAsciiL( "private:", 8 ) ) - sDocURL = ::rtl::OUString(); + sDocURL = OUString(); // 2. if the document is not saved, yet, check the frame title if ( sDocURL.isEmpty() ) @@ -161,13 +161,13 @@ namespace comphelper { catch ( const Exception& ) { ::com::sun::star::uno::Any caught( ::cppu::getCaughtException() ); - ::rtl::OString sMessage( "caught an exception!" ); + OString sMessage( "caught an exception!" ); sMessage += "\ntype : "; - sMessage += ::rtl::OString( caught.getValueTypeName().getStr(), caught.getValueTypeName().getLength(), osl_getThreadTextEncoding() ); + sMessage += OString( caught.getValueTypeName().getStr(), caught.getValueTypeName().getLength(), osl_getThreadTextEncoding() ); sMessage += "\nmessage: "; ::com::sun::star::uno::Exception exception; caught >>= exception; - sMessage += ::rtl::OString( exception.Message.getStr(), exception.Message.getLength(), osl_getThreadTextEncoding() ); + sMessage += OString( exception.Message.getStr(), exception.Message.getLength(), osl_getThreadTextEncoding() ); sMessage += "\nin function:\n"; sMessage += BOOST_CURRENT_FUNCTION; sMessage += "\n"; diff --git a/comphelper/source/misc/documentiologring.cxx b/comphelper/source/misc/documentiologring.cxx index e9429b4a62bd..28df327710d9 100644 --- a/comphelper/source/misc/documentiologring.cxx +++ b/comphelper/source/misc/documentiologring.cxx @@ -45,9 +45,9 @@ OSimpleLogRing::~OSimpleLogRing() } // ---------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames_static() +uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames_static() { - uno::Sequence< rtl::OUString > aResult( 1 ); + uno::Sequence< OUString > aResult( 1 ); aResult[0] = getServiceName_static(); return aResult; } @@ -78,7 +78,7 @@ uno::Reference< uno::XInterface > SAL_CALL OSimpleLogRing::Create( SAL_UNUSED_PA // XSimpleLogRing // ---------------------------------------------------------- -void SAL_CALL OSimpleLogRing::logString( const ::rtl::OUString& aMessage ) throw (uno::RuntimeException) +void SAL_CALL OSimpleLogRing::logString( const OUString& aMessage ) throw (uno::RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -94,13 +94,13 @@ void SAL_CALL OSimpleLogRing::logString( const ::rtl::OUString& aMessage ) throw } // ---------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OSimpleLogRing::getCollectedLog() throw (uno::RuntimeException) +uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getCollectedLog() throw (uno::RuntimeException) { ::osl::MutexGuard aGuard( m_aMutex ); sal_Int32 nResLen = m_bFull ? m_aMessages.getLength() : m_nPos; sal_Int32 nStart = m_bFull ? m_nPos : 0; - uno::Sequence< ::rtl::OUString > aResult( nResLen ); + uno::Sequence< OUString > aResult( nResLen ); for ( sal_Int32 nInd = 0; nInd < nResLen; nInd++ ) aResult[nInd] = m_aMessages[ ( nStart + nInd ) % m_aMessages.getLength() ]; @@ -136,15 +136,15 @@ void SAL_CALL OSimpleLogRing::initialize( const uno::Sequence< uno::Any >& aArgu // XServiceInfo // ---------------------------------------------------------- -::rtl::OUString SAL_CALL OSimpleLogRing::getImplementationName() throw (uno::RuntimeException) +OUString SAL_CALL OSimpleLogRing::getImplementationName() throw (uno::RuntimeException) { return getImplementationName_static(); } // ---------------------------------------------------------- -::sal_Bool SAL_CALL OSimpleLogRing::supportsService( const ::rtl::OUString& aServiceName ) throw (uno::RuntimeException) +::sal_Bool SAL_CALL OSimpleLogRing::supportsService( const OUString& aServiceName ) throw (uno::RuntimeException) { - const uno::Sequence< rtl::OUString > & aSupportedNames = getSupportedServiceNames_static(); + const uno::Sequence< OUString > & aSupportedNames = getSupportedServiceNames_static(); for ( sal_Int32 nInd = 0; nInd < aSupportedNames.getLength(); nInd++ ) { if ( aSupportedNames[ nInd ].equals( aServiceName ) ) @@ -155,7 +155,7 @@ void SAL_CALL OSimpleLogRing::initialize( const uno::Sequence< uno::Any >& aArgu } // ---------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames() throw (uno::RuntimeException) +uno::Sequence< OUString > SAL_CALL OSimpleLogRing::getSupportedServiceNames() throw (uno::RuntimeException) { return getSupportedServiceNames_static(); } diff --git a/comphelper/source/misc/documentiologring.hxx b/comphelper/source/misc/documentiologring.hxx index 467d864b6709..99915c6dfc3d 100644 --- a/comphelper/source/misc/documentiologring.hxx +++ b/comphelper/source/misc/documentiologring.hxx @@ -37,7 +37,7 @@ class OSimpleLogRing : public ::cppu::WeakImplHelper3< ::com::sun::star::logging ::com::sun::star::lang::XServiceInfo > { ::osl::Mutex m_aMutex; - ::com::sun::star::uno::Sequence< ::rtl::OUString > m_aMessages; + ::com::sun::star::uno::Sequence< OUString > m_aMessages; sal_Bool m_bInitialized; sal_Bool m_bFull; @@ -47,29 +47,29 @@ public: OSimpleLogRing(); virtual ~OSimpleLogRing(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static(); - static ::rtl::OUString SAL_CALL getImplementationName_static(); + static OUString SAL_CALL getImplementationName_static(); - static ::rtl::OUString SAL_CALL getSingletonName_static(); + static OUString SAL_CALL getSingletonName_static(); - static ::rtl::OUString SAL_CALL getServiceName_static(); + static OUString SAL_CALL getServiceName_static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); // XSimpleLogRing - virtual void SAL_CALL logString( const ::rtl::OUString& aMessage ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getCollectedLog() throw (::com::sun::star::uno::RuntimeException); + virtual void SAL_CALL logString( const OUString& aMessage ) throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getCollectedLog() throw (::com::sun::star::uno::RuntimeException); // XInitialization virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::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); }; diff --git a/comphelper/source/misc/evtmethodhelper.cxx b/comphelper/source/misc/evtmethodhelper.cxx index 4a18372e8834..d69bdfd7c944 100644 --- a/comphelper/source/misc/evtmethodhelper.cxx +++ b/comphelper/source/misc/evtmethodhelper.cxx @@ -26,16 +26,16 @@ using ::com::sun::star::uno::Type; namespace comphelper { - Sequence< ::rtl::OUString> getEventMethodsForType(const Type& type) + Sequence< OUString> getEventMethodsForType(const Type& type) { typelib_InterfaceTypeDescription *pType=0; type.getDescription( (typelib_TypeDescription**)&pType); if(!pType) - return Sequence< ::rtl::OUString>(); + return Sequence< OUString>(); - Sequence< ::rtl::OUString> aNames(pType->nMembers); - ::rtl::OUString* pNames = aNames.getArray(); + Sequence< OUString> aNames(pType->nMembers); + OUString* pNames = aNames.getArray(); for(sal_Int32 i=0;i<pType->nMembers;i++,++pNames) { // the decription reference diff --git a/comphelper/source/misc/ihwrapnofilter.cxx b/comphelper/source/misc/ihwrapnofilter.cxx index c6b6697eeb47..7999bbdcc835 100644 --- a/comphelper/source/misc/ihwrapnofilter.cxx +++ b/comphelper/source/misc/ihwrapnofilter.cxx @@ -102,16 +102,16 @@ namespace comphelper // XServiceInfo //---------------------------------------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OIHWrapNoFilterDialog::getImplementationName() + OUString SAL_CALL OIHWrapNoFilterDialog::getImplementationName() throw ( uno::RuntimeException ) { return impl_staticGetImplementationName(); } - ::sal_Bool SAL_CALL OIHWrapNoFilterDialog::supportsService( const ::rtl::OUString& ServiceName ) + ::sal_Bool SAL_CALL OIHWrapNoFilterDialog::supportsService( const OUString& ServiceName ) throw ( uno::RuntimeException ) { - uno::Sequence< ::rtl::OUString > aSeq = impl_staticGetSupportedServiceNames(); + uno::Sequence< OUString > aSeq = impl_staticGetSupportedServiceNames(); for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ ) if ( ServiceName == aSeq[nInd] ) @@ -120,7 +120,7 @@ namespace comphelper return sal_False; } - uno::Sequence< ::rtl::OUString > SAL_CALL OIHWrapNoFilterDialog::getSupportedServiceNames() + uno::Sequence< OUString > SAL_CALL OIHWrapNoFilterDialog::getSupportedServiceNames() throw ( uno::RuntimeException ) { return impl_staticGetSupportedServiceNames(); diff --git a/comphelper/source/misc/instancelocker.cxx b/comphelper/source/misc/instancelocker.cxx index a42852fa2b0c..f14be18a0ba1 100644 --- a/comphelper/source/misc/instancelocker.cxx +++ b/comphelper/source/misc/instancelocker.cxx @@ -190,17 +190,17 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg // XServiceInfo // -------------------------------------------------------- -::rtl::OUString SAL_CALL OInstanceLocker::getImplementationName( ) +OUString SAL_CALL OInstanceLocker::getImplementationName( ) throw (uno::RuntimeException) { return getImplementationName_static(); } // -------------------------------------------------------- -::sal_Bool SAL_CALL OInstanceLocker::supportsService( const ::rtl::OUString& ServiceName ) +::sal_Bool SAL_CALL OInstanceLocker::supportsService( const OUString& ServiceName ) throw (uno::RuntimeException) { - uno::Sequence< ::rtl::OUString > aSeq = getSupportedServiceNames(); + uno::Sequence< OUString > aSeq = getSupportedServiceNames(); for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ ) if ( ServiceName == aSeq[nInd] ) @@ -210,7 +210,7 @@ void SAL_CALL OInstanceLocker::initialize( const uno::Sequence< uno::Any >& aArg } // -------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OInstanceLocker::getSupportedServiceNames() +uno::Sequence< OUString > SAL_CALL OInstanceLocker::getSupportedServiceNames() throw (uno::RuntimeException) { return getSupportedServiceNames_static(); diff --git a/comphelper/source/misc/instancelocker.hxx b/comphelper/source/misc/instancelocker.hxx index 7e5fd1430b01..ba80ce39ee8d 100644 --- a/comphelper/source/misc/instancelocker.hxx +++ b/comphelper/source/misc/instancelocker.hxx @@ -58,10 +58,10 @@ public: OInstanceLocker( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ); ~OInstanceLocker(); - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static(); - static ::rtl::OUString SAL_CALL getImplementationName_static(); + static OUString SAL_CALL getImplementationName_static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( @@ -76,9 +76,9 @@ public: virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::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); }; diff --git a/comphelper/source/misc/interaction.cxx b/comphelper/source/misc/interaction.cxx index 4f922b3e8d7d..916858317bab 100644 --- a/comphelper/source/misc/interaction.cxx +++ b/comphelper/source/misc/interaction.cxx @@ -32,13 +32,13 @@ namespace comphelper //= OInteractionPassword //========================================================================= //-------------------------------------------------------------------- - void SAL_CALL OInteractionPassword::setPassword( const ::rtl::OUString& _Password ) throw (RuntimeException) + void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException) { m_sPassword = _Password; } //-------------------------------------------------------------------- - ::rtl::OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException) + OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException) { return m_sPassword; } diff --git a/comphelper/source/misc/logging.cxx b/comphelper/source/misc/logging.cxx index bd3a09251880..98f38d878a9b 100644 --- a/comphelper/source/misc/logging.cxx +++ b/comphelper/source/misc/logging.cxx @@ -53,11 +53,11 @@ namespace comphelper { private: Reference< XComponentContext > m_aContext; - ::rtl::OUString m_sLoggerName; + OUString m_sLoggerName; Reference< XLogger > m_xLogger; public: - EventLogger_Impl( const Reference< XComponentContext >& _rxContext, const ::rtl::OUString& _rLoggerName ) + EventLogger_Impl( const Reference< XComponentContext >& _rxContext, const OUString& _rLoggerName ) :m_aContext( _rxContext ) ,m_sLoggerName( _rLoggerName ) { @@ -65,7 +65,7 @@ namespace comphelper } inline bool isValid() const { return m_xLogger.is(); } - inline const ::rtl::OUString& getName() const { return m_sLoggerName; } + inline const OUString& getName() const { return m_sLoggerName; } inline const Reference< XLogger >& getLogger() const { return m_xLogger; } inline Reference< XComponentContext > getContext() const { return m_aContext; } @@ -99,7 +99,7 @@ namespace comphelper //==================================================================== //-------------------------------------------------------------------- EventLogger::EventLogger( const Reference< XComponentContext >& _rxContext, const sal_Char* _pAsciiLoggerName ) - :m_pImpl( new EventLogger_Impl( _rxContext, ::rtl::OUString::createFromAscii( _pAsciiLoggerName ) ) ) + :m_pImpl( new EventLogger_Impl( _rxContext, OUString::createFromAscii( _pAsciiLoggerName ) ) ) { } @@ -130,7 +130,7 @@ namespace comphelper //-------------------------------------------------------------------- namespace { - void lcl_replaceParameter( ::rtl::OUString& _inout_Message, const ::rtl::OUString& _rPlaceHolder, const ::rtl::OUString& _rReplacement ) + void lcl_replaceParameter( OUString& _inout_Message, const OUString& _rPlaceHolder, const OUString& _rReplacement ) { sal_Int32 nPlaceholderPosition = _inout_Message.indexOf( _rPlaceHolder ); OSL_ENSURE( nPlaceholderPosition >= 0, "lcl_replaceParameter: placeholder not found!" ); @@ -143,20 +143,20 @@ namespace comphelper //-------------------------------------------------------------------- bool EventLogger::impl_log( const sal_Int32 _nLogLevel, - const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const ::rtl::OUString& _rMessage, + const sal_Char* _pSourceClass, const sal_Char* _pSourceMethod, const OUString& _rMessage, const OptionalString& _rArgument1, const OptionalString& _rArgument2, const OptionalString& _rArgument3, const OptionalString& _rArgument4, const OptionalString& _rArgument5, const OptionalString& _rArgument6 ) const { - // (if ::rtl::OUString had an indexOfAscii, we could save those ugly statics ...) - static ::rtl::OUString sPH1( "$1$" ); - static ::rtl::OUString sPH2( "$2$" ); - static ::rtl::OUString sPH3( "$3$" ); - static ::rtl::OUString sPH4( "$4$" ); - static ::rtl::OUString sPH5( "$5$" ); - static ::rtl::OUString sPH6( "$6$" ); - - ::rtl::OUString sMessage( _rMessage ); + // (if OUString had an indexOfAscii, we could save those ugly statics ...) + static OUString sPH1( "$1$" ); + static OUString sPH2( "$2$" ); + static OUString sPH3( "$3$" ); + static OUString sPH4( "$4$" ); + static OUString sPH5( "$5$" ); + static OUString sPH6( "$6$" ); + + OUString sMessage( _rMessage ); if ( !!_rArgument1 ) lcl_replaceParameter( sMessage, sPH1, *_rArgument1 ); @@ -183,8 +183,8 @@ namespace comphelper { xLogger->logp( _nLogLevel, - ::rtl::OUString::createFromAscii( _pSourceClass ), - ::rtl::OUString::createFromAscii( _pSourceMethod ), + OUString::createFromAscii( _pSourceClass ), + OUString::createFromAscii( _pSourceMethod ), sMessage ); } @@ -208,7 +208,7 @@ namespace comphelper struct ResourceBasedEventLogger_Data { /// the base name of the resource bundle - ::rtl::OUString sBundleBaseName; + OUString sBundleBaseName; /// did we already attempt to load the bundle? bool bBundleLoaded; /// the lazily loaded bundle @@ -248,13 +248,13 @@ namespace comphelper } //-------------------------------------------------------------------- - ::rtl::OUString lcl_loadString_nothrow( const Reference< XResourceBundle >& _rxBundle, const sal_Int32 _nMessageResID ) + OUString lcl_loadString_nothrow( const Reference< XResourceBundle >& _rxBundle, const sal_Int32 _nMessageResID ) { OSL_PRECOND( _rxBundle.is(), "lcl_loadString_nothrow: this will crash!" ); - ::rtl::OUString sMessage; + OUString sMessage; try { - ::rtl::OUStringBuffer aBuffer; + OUStringBuffer aBuffer; aBuffer.appendAscii( "string:" ); aBuffer.append( _nMessageResID ); OSL_VERIFY( _rxBundle->getDirectElement( aBuffer.makeStringAndClear() ) >>= sMessage ); @@ -276,18 +276,18 @@ namespace comphelper :EventLogger( _rxContext, _pAsciiLoggerName ) ,m_pData( new ResourceBasedEventLogger_Data ) { - m_pData->sBundleBaseName = ::rtl::OUString::createFromAscii( _pResourceBundleBaseName ); + m_pData->sBundleBaseName = OUString::createFromAscii( _pResourceBundleBaseName ); } //-------------------------------------------------------------------- - ::rtl::OUString ResourceBasedEventLogger::impl_loadStringMessage_nothrow( const sal_Int32 _nMessageResID ) const + OUString ResourceBasedEventLogger::impl_loadStringMessage_nothrow( const sal_Int32 _nMessageResID ) const { - ::rtl::OUString sMessage; + OUString sMessage; if ( lcl_loadBundle_nothrow( m_pImpl->getContext(), *m_pData ) ) sMessage = lcl_loadString_nothrow( m_pData->xBundle, _nMessageResID ); if ( sMessage.isEmpty() ) { - ::rtl::OUStringBuffer aBuffer; + OUStringBuffer aBuffer; aBuffer.appendAscii( "<invalid event resource: '" ); aBuffer.append( m_pData->sBundleBaseName ); aBuffer.appendAscii( ":" ); diff --git a/comphelper/source/misc/mediadescriptor.cxx b/comphelper/source/misc/mediadescriptor.cxx index 9cd4a15956a9..586f6fcb1675 100644 --- a/comphelper/source/misc/mediadescriptor.cxx +++ b/comphelper/source/misc/mediadescriptor.cxx @@ -50,45 +50,45 @@ namespace comphelper{ -const ::rtl::OUString& MediaDescriptor::PROP_ABORTED() +const OUString& MediaDescriptor::PROP_ABORTED() { - static const ::rtl::OUString sProp("Aborted"); + static const OUString sProp("Aborted"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_ASTEMPLATE() +const OUString& MediaDescriptor::PROP_ASTEMPLATE() { - static const ::rtl::OUString sProp("AsTemplate"); + static const OUString sProp("AsTemplate"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_COMPONENTDATA() +const OUString& MediaDescriptor::PROP_COMPONENTDATA() { - static const ::rtl::OUString sProp("ComponentData"); + static const OUString sProp("ComponentData"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_DOCUMENTSERVICE() +const OUString& MediaDescriptor::PROP_DOCUMENTSERVICE() { - static const ::rtl::OUString sProp("DocumentService"); + static const OUString sProp("DocumentService"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_ENCRYPTIONDATA() +const OUString& MediaDescriptor::PROP_ENCRYPTIONDATA() { - static const ::rtl::OUString sProp("EncryptionData"); + static const OUString sProp("EncryptionData"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_FILENAME() +const OUString& MediaDescriptor::PROP_FILENAME() { - static const ::rtl::OUString sProp("FileName"); + static const OUString sProp("FileName"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_FILTERNAME() +const OUString& MediaDescriptor::PROP_FILTERNAME() { - static const ::rtl::OUString sProp("FilterName"); + static const OUString sProp("FilterName"); return sProp; } @@ -98,57 +98,57 @@ const OUString& MediaDescriptor::PROP_FILTERPROVIDER() return aProp; } -const ::rtl::OUString& MediaDescriptor::PROP_FILTEROPTIONS() +const OUString& MediaDescriptor::PROP_FILTEROPTIONS() { - static const ::rtl::OUString sProp("FilterOptions"); + static const OUString sProp("FilterOptions"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_FRAME() +const OUString& MediaDescriptor::PROP_FRAME() { - static const ::rtl::OUString sProp("Frame"); + static const OUString sProp("Frame"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_FRAMENAME() +const OUString& MediaDescriptor::PROP_FRAMENAME() { - static const ::rtl::OUString sProp("FrameName"); + static const OUString sProp("FrameName"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_HIDDEN() +const OUString& MediaDescriptor::PROP_HIDDEN() { - static const ::rtl::OUString sProp("Hidden"); + static const OUString sProp("Hidden"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_INPUTSTREAM() +const OUString& MediaDescriptor::PROP_INPUTSTREAM() { - static const ::rtl::OUString sProp("InputStream"); + static const OUString sProp("InputStream"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_INTERACTIONHANDLER() +const OUString& MediaDescriptor::PROP_INTERACTIONHANDLER() { - static const ::rtl::OUString sProp("InteractionHandler"); + static const OUString sProp("InteractionHandler"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_JUMPMARK() +const OUString& MediaDescriptor::PROP_JUMPMARK() { - static const ::rtl::OUString sProp("JumpMark"); + static const OUString sProp("JumpMark"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_MACROEXECUTIONMODE() +const OUString& MediaDescriptor::PROP_MACROEXECUTIONMODE() { - static const ::rtl::OUString sProp("MacroExecutionMode"); + static const OUString sProp("MacroExecutionMode"); return sProp; } -const ::rtl::OUString& MediaDescriptor::PROP_MEDIATYPE() +const OUString& MediaDescriptor::PROP_MEDIATYPE() { - static const ::rtl::OUString sProp("MediaType"); + static const OUString sProp("MediaType"); return sProp; } @@ -348,7 +348,7 @@ sal_Bool MediaDescriptor::isStreamReadOnly() const if (xContent.is()) { css::uno::Reference< css::ucb::XContentIdentifier > xId(xContent->getIdentifier(), css::uno::UNO_QUERY); - ::rtl::OUString aScheme; + OUString aScheme; if (xId.is()) aScheme = xId->getContentProviderScheme(); @@ -371,7 +371,7 @@ sal_Bool MediaDescriptor::isStreamReadOnly() const // ---------------------------------------------------------------------------- -css::uno::Any MediaDescriptor::getComponentDataEntry( const ::rtl::OUString& rName ) const +css::uno::Any MediaDescriptor::getComponentDataEntry( const OUString& rName ) const { css::uno::Any aEntry; SequenceAsHashMap::const_iterator aPropertyIter = find( PROP_COMPONENTDATA() ); @@ -380,7 +380,7 @@ css::uno::Any MediaDescriptor::getComponentDataEntry( const ::rtl::OUString& rNa return css::uno::Any(); } -void MediaDescriptor::setComponentDataEntry( const ::rtl::OUString& rName, const css::uno::Any& rValue ) +void MediaDescriptor::setComponentDataEntry( const OUString& rName, const css::uno::Any& rValue ) { if( rValue.hasValue() ) { @@ -406,7 +406,7 @@ void MediaDescriptor::setComponentDataEntry( const ::rtl::OUString& rName, const } } -void MediaDescriptor::clearComponentDataEntry( const ::rtl::OUString& rName ) +void MediaDescriptor::clearComponentDataEntry( const OUString& rName ) { SequenceAsHashMap::iterator aPropertyIter = find( PROP_COMPONENTDATA() ); if( aPropertyIter != end() ) @@ -464,22 +464,22 @@ sal_Bool MediaDescriptor::impl_addInputStream( sal_Bool bLockFile ) } // b) ... or we must get it from the given URL - ::rtl::OUString sURL = getUnpackedValueOrDefault(MediaDescriptor::PROP_URL(), ::rtl::OUString()); + OUString sURL = getUnpackedValueOrDefault(MediaDescriptor::PROP_URL(), OUString()); if (sURL.isEmpty()) throw css::uno::Exception( OUString( "Found no URL." ), css::uno::Reference< css::uno::XInterface >()); // Parse URL! Only the main part has to be used further. E.g. a jumpmark can make trouble - ::rtl::OUString sNormalizedURL = impl_normalizeURL( sURL ); + OUString sNormalizedURL = impl_normalizeURL( sURL ); return impl_openStreamWithURL( sNormalizedURL, bLockFile ); } #if OSL_DEBUG_LEVEL > 0 catch(const css::uno::Exception& ex) { - ::rtl::OUStringBuffer sMsg(256); + OUStringBuffer sMsg(256); sMsg.appendAscii("Invalid MediaDescriptor detected:\n"); sMsg.append (ex.Message ); - OSL_FAIL(::rtl::OUStringToOString(sMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr()); + OSL_FAIL(OUStringToOString(sMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8).getStr()); } #else catch(const css::uno::Exception&) @@ -508,7 +508,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference css::uno::Reference< css::ucb::XCommandEnvironment > xCommandEnv(static_cast< css::ucb::XCommandEnvironment* >(pCommandEnv), css::uno::UNO_QUERY); // media type - ::rtl::OUString sMediaType = getUnpackedValueOrDefault(MediaDescriptor::PROP_MEDIATYPE(), ::rtl::OUString()); + OUString sMediaType = getUnpackedValueOrDefault(MediaDescriptor::PROP_MEDIATYPE(), OUString()); if (sMediaType.isEmpty()) { sMediaType = "application/x-www-form-urlencoded"; @@ -535,7 +535,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithPostData( const css::uno::Reference css::uno::Reference< css::io::XActiveDataSink > xSink( new ucbhelper::ActiveDataSink ); aPostArgument.Sink = xSink; aPostArgument.MediaType = sMediaType; - aPostArgument.Referer = getUnpackedValueOrDefault( PROP_REFERRER(), ::rtl::OUString() ); + aPostArgument.Referer = getUnpackedValueOrDefault( PROP_REFERRER(), OUString() ); OUString sCommandName( "post" ); aContent.executeCommand( sCommandName, css::uno::makeAny( aPostArgument ) ); @@ -694,7 +694,7 @@ sal_Bool MediaDescriptor::impl_openStreamWithURL( const OUString& sURL, sal_Bool return xInputStream.is(); } -::rtl::OUString MediaDescriptor::impl_normalizeURL(const ::rtl::OUString& sURL) +OUString MediaDescriptor::impl_normalizeURL(const OUString& sURL) { /* Remove Jumpmarks (fragments) of an URL only here. They are not part of any URL and as a result may be diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index c483c1ea4654..733bf2645873 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -42,7 +42,7 @@ MimeConfigurationHelper::MimeConfigurationHelper( const uno::Reference< uno::XCo } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Sequence< sal_Int8 >& aClassID ) +OUString MimeConfigurationHelper::GetStringClassIDRepresentation( const uno::Sequence< sal_Int8 >& aClassID ) { OUString aResult; @@ -55,8 +55,8 @@ MimeConfigurationHelper::MimeConfigurationHelper( const uno::Reference< uno::XCo sal_Int32 nDigit1 = (sal_Int32)( (sal_uInt8)aClassID[nInd] / 16 ); sal_Int32 nDigit2 = (sal_uInt8)aClassID[nInd] % 16; - aResult += ::rtl::OUString::valueOf( nDigit1, 16 ); - aResult += ::rtl::OUString::valueOf( nDigit2, 16 ); + aResult += OUString::valueOf( nDigit1, 16 ); + aResult += OUString::valueOf( nDigit2, 16 ); } } @@ -77,12 +77,12 @@ sal_uInt8 GetDigit_Impl( sal_Char aChar ) } //----------------------------------------------------------------------- -uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentation( const ::rtl::OUString& aClassID ) +uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentation( const OUString& aClassID ) { sal_Int32 nLength = aClassID.getLength(); if ( nLength == 36 ) { - ::rtl::OString aCharClassID = ::rtl::OUStringToOString( aClassID, RTL_TEXTENCODING_ASCII_US ); + OString aCharClassID = OUStringToOString( aClassID, RTL_TEXTENCODING_ASCII_US ); const sal_Char* pString = aCharClassID.getStr(); if ( pString ) { @@ -113,7 +113,7 @@ uno::Sequence< sal_Int8 > MimeConfigurationHelper::GetSequenceClassIDRepresentat } //----------------------------------------------------------------------- -uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurationByPath( const ::rtl::OUString& aPath ) +uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetConfigurationByPath( const OUString& aPath ) { osl::MutexGuard aGuard( m_aMutex ); @@ -173,7 +173,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeCo if ( !m_xMediaTypeConfig.is() ) m_xMediaTypeConfig = GetConfigurationByPath( - ::rtl::OUString( "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations" )); + OUString( "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations" )); return m_xMediaTypeConfig; } @@ -192,9 +192,9 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFacto } //------------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetDocServiceNameFromFilter( const ::rtl::OUString& aFilterName ) +OUString MimeConfigurationHelper::GetDocServiceNameFromFilter( const OUString& aFilterName ) { - ::rtl::OUString aDocServiceName; + OUString aDocServiceName; try { @@ -218,7 +218,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFacto } //------------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType( const ::rtl::OUString& aMediaType ) +OUString MimeConfigurationHelper::GetDocServiceNameFromMediaType( const OUString& aMediaType ) { uno::Reference< container::XContainerQuery > xTypeCFG( m_xContext->getServiceManager()->createInstanceWithContext("com.sun.star.document.TypeDetection", m_xContext), @@ -257,11 +257,11 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetFilterFacto {} } - return ::rtl::OUString(); + return OUString(); } //------------------------------------------------------------------------- -sal_Bool MimeConfigurationHelper::GetVerbByShortcut( const ::rtl::OUString& aVerbShortcut, +sal_Bool MimeConfigurationHelper::GetVerbByShortcut( const OUString& aVerbShortcut, embed::VerbDescriptor& aDescriptor ) { sal_Bool bResult = sal_False; @@ -301,7 +301,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfi { try { - uno::Sequence< ::rtl::OUString > aObjPropNames = xObjectProps->getElementNames(); + uno::Sequence< OUString > aObjPropNames = xObjectProps->getElementNames(); aResult.realloc( aObjPropNames.getLength() + 1 ); aResult[0].Name = "ClassID"; @@ -313,7 +313,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfi if ( aObjPropNames[nInd] == "ObjectVerbs" ) { - uno::Sequence< ::rtl::OUString > aVerbShortcuts; + uno::Sequence< OUString > aVerbShortcuts; if ( xObjectProps->getByName( aObjPropNames[nInd] ) >>= aVerbShortcuts ) { uno::Sequence< embed::VerbDescriptor > aVerbDescriptors( aVerbShortcuts.getLength() ); @@ -340,9 +340,9 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfi } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID( const ::rtl::OUString& aMediaType ) +OUString MimeConfigurationHelper::GetExplicitlyRegisteredObjClassID( const OUString& aMediaType ) { - ::rtl::OUString aStringClassID; + OUString aStringClassID; uno::Reference< container::XNameAccess > xMediaTypeConfig = GetMediaTypeConfiguration(); try @@ -360,7 +360,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjPropsFromConfi //----------------------------------------------------------------------- uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByStringClassID( - const ::rtl::OUString& aStringClassID ) + const OUString& aStringClassID ) { uno::Sequence< beans::NamedValue > aObjProps; @@ -402,12 +402,12 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClas { aObjProps.realloc(2); aObjProps[0].Name = "ObjectFactory"; - aObjProps[0].Value <<= ::rtl::OUString( "com.sun.star.embed.OOoSpecialEmbeddedObjectFactory" ); + aObjProps[0].Value <<= OUString( "com.sun.star.embed.OOoSpecialEmbeddedObjectFactory" ); aObjProps[1].Name = "ClassID"; aObjProps[1].Value <<= aClassID; } - ::rtl::OUString aStringClassID = GetStringClassIDRepresentation( aClassID ); + OUString aStringClassID = GetStringClassIDRepresentation( aClassID ); if ( !aStringClassID.isEmpty() ) { uno::Reference< container::XNameAccess > xObjConfig = GetObjConfiguration(); @@ -426,14 +426,14 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByClas } //----------------------------------------------------------------------- -uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType( const ::rtl::OUString& aMediaType ) +uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMediaType( const OUString& aMediaType ) { uno::Sequence< beans::NamedValue > aObject = GetObjectPropsByStringClassID( GetExplicitlyRegisteredObjClassID( aMediaType ) ); if ( aObject.getLength() ) return aObject; - ::rtl::OUString aDocumentName = GetDocServiceNameFromMediaType( aMediaType ); + OUString aDocumentName = GetDocServiceNameFromMediaType( aMediaType ); if ( !aDocumentName.isEmpty() ) return GetObjectPropsByDocumentName( aDocumentName ); @@ -441,9 +441,9 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByMedi } //----------------------------------------------------------------------- -uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter( const ::rtl::OUString& aFilterName ) +uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByFilter( const OUString& aFilterName ) { - ::rtl::OUString aDocumentName = GetDocServiceNameFromFilter( aFilterName ); + OUString aDocumentName = GetDocServiceNameFromFilter( aFilterName ); if ( !aDocumentName.isEmpty() ) return GetObjectPropsByDocumentName( aDocumentName ); @@ -460,7 +460,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu { try { - uno::Sequence< ::rtl::OUString > aClassIDs = xObjConfig->getElementNames(); + uno::Sequence< OUString > aClassIDs = xObjConfig->getElementNames(); for ( sal_Int32 nInd = 0; nInd < aClassIDs.getLength(); nInd++ ) { uno::Reference< container::XNameAccess > xObjectProps; @@ -484,15 +484,15 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetFactoryNameByClassID( const uno::Sequence< sal_Int8 >& aClassID ) +OUString MimeConfigurationHelper::GetFactoryNameByClassID( const uno::Sequence< sal_Int8 >& aClassID ) { return GetFactoryNameByStringClassID( GetStringClassIDRepresentation( aClassID ) ); } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetFactoryNameByStringClassID( const ::rtl::OUString& aStringClassID ) +OUString MimeConfigurationHelper::GetFactoryNameByStringClassID( const OUString& aStringClassID ) { - ::rtl::OUString aResult; + OUString aResult; if ( !aStringClassID.isEmpty() ) { @@ -501,13 +501,13 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu try { if ( xObjConfig.is() && ( xObjConfig->getByName( aStringClassID.toAsciiUpperCase() ) >>= xObjectProps ) && xObjectProps.is() ) - xObjectProps->getByName( ::rtl::OUString( "ObjectFactory" ) ) >>= aResult; + xObjectProps->getByName( OUString( "ObjectFactory" ) ) >>= aResult; } catch( uno::Exception& ) { uno::Sequence< sal_Int8 > aClassID = GetSequenceClassIDRepresentation( aStringClassID ); if ( ClassIDsEqual( aClassID, GetSequenceClassID( SO3_DUMMY_CLASSID ) ) ) - return ::rtl::OUString( "com.sun.star.embed.OOoSpecialEmbeddedObjectFactory" ); + return OUString( "com.sun.star.embed.OOoSpecialEmbeddedObjectFactory" ); } } @@ -515,9 +515,9 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetFactoryNameByDocumentName( const ::rtl::OUString& aDocName ) +OUString MimeConfigurationHelper::GetFactoryNameByDocumentName( const OUString& aDocName ) { - ::rtl::OUString aResult; + OUString aResult; if ( !aDocName.isEmpty() ) { @@ -526,7 +526,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu { try { - uno::Sequence< ::rtl::OUString > aClassIDs = xObjConfig->getElementNames(); + uno::Sequence< OUString > aClassIDs = xObjConfig->getElementNames(); for ( sal_Int32 nInd = 0; nInd < aClassIDs.getLength(); nInd++ ) { uno::Reference< container::XNameAccess > xObjectProps; @@ -552,13 +552,13 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const ::rtl::OUString& aMediaType ) +OUString MimeConfigurationHelper::GetFactoryNameByMediaType( const OUString& aMediaType ) { - ::rtl::OUString aResult = GetFactoryNameByStringClassID( GetExplicitlyRegisteredObjClassID( aMediaType ) ); + OUString aResult = GetFactoryNameByStringClassID( GetExplicitlyRegisteredObjClassID( aMediaType ) ); if ( aResult.isEmpty() ) { - ::rtl::OUString aDocumentName = GetDocServiceNameFromMediaType( aMediaType ); + OUString aDocumentName = GetDocServiceNameFromMediaType( aMediaType ); if ( !aDocumentName.isEmpty() ) aResult = GetFactoryNameByDocumentName( aDocumentName ); } @@ -567,11 +567,11 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu } //----------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( +OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( uno::Sequence< beans::PropertyValue >& aMediaDescr, sal_Bool bIgnoreType ) { - ::rtl::OUString aFilterName; + OUString aFilterName; for ( sal_Int32 nInd = 0; nInd < aMediaDescr.getLength(); nInd++ ) if ( aMediaDescr[nInd].Name == "FilterName" ) @@ -592,7 +592,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu uno::Sequence< beans::PropertyValue > aTempMD( aMediaDescr ); // get TypeName - ::rtl::OUString aTypeName = xTypeDetection->queryTypeByDescriptor( aTempMD, sal_True ); + OUString aTypeName = xTypeDetection->queryTypeByDescriptor( aTempMD, sal_True ); // get FilterName for ( sal_Int32 nInd = 0; nInd < aTempMD.getLength(); nInd++ ) @@ -632,11 +632,11 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu return aFilterName; } -::rtl::OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( +OUString MimeConfigurationHelper::UpdateMediaDescriptorWithFilterName( uno::Sequence< beans::PropertyValue >& aMediaDescr, uno::Sequence< beans::NamedValue >& aObject ) { - ::rtl::OUString aDocName; + OUString aDocName; for ( sal_Int32 nInd = 0; nInd < aObject.getLength(); nInd++ ) if ( aObject[nInd].Name == "ObjectDocumentServiceName" ) { @@ -669,7 +669,7 @@ uno::Sequence< beans::NamedValue > MimeConfigurationHelper::GetObjectPropsByDocu #ifdef WNT -sal_Int32 MimeConfigurationHelper::GetFilterFlags( const ::rtl::OUString& aFilterName ) +sal_Int32 MimeConfigurationHelper::GetFilterFlags( const OUString& aFilterName ) { sal_Int32 nFlags = 0; try @@ -699,7 +699,7 @@ sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( { sal_Bool bResult = sal_False; - ::rtl::OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False ); + OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False ); if ( !aFilterName.isEmpty() ) { sal_Int32 nFlags = GetFilterFlags( aFilterName ); @@ -712,9 +712,9 @@ sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( #endif //----------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const ::rtl::OUString& aServiceName, sal_Int32 nVersion ) +OUString MimeConfigurationHelper::GetDefaultFilterFromServiceName( const OUString& aServiceName, sal_Int32 nVersion ) { - rtl::OUString aResult; + OUString aResult; if ( !aServiceName.isEmpty() && nVersion ) try @@ -764,9 +764,9 @@ sal_Bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( } //------------------------------------------------------------------------- -::rtl::OUString MimeConfigurationHelper::GetExportFilterFromImportFilter( const ::rtl::OUString& aImportFilterName ) +OUString MimeConfigurationHelper::GetExportFilterFromImportFilter( const OUString& aImportFilterName ) { - ::rtl::OUString aExportFilterName; + OUString aExportFilterName; try { @@ -851,7 +851,7 @@ uno::Sequence< beans::PropertyValue > MimeConfigurationHelper::SearchForFilter( if ( xFilterEnum->nextElement() >>= aProps ) { SequenceAsHashMap aPropsHM( aProps ); - sal_Int32 nFlags = aPropsHM.getUnpackedValueOrDefault( ::rtl::OUString("Flags"), + sal_Int32 nFlags = aPropsHM.getUnpackedValueOrDefault( OUString("Flags"), (sal_Int32)0 ); if ( ( ( nFlags & nMustFlags ) == nMustFlags ) && !( nFlags & nDontFlags ) ) { diff --git a/comphelper/source/misc/namedvaluecollection.cxx b/comphelper/source/misc/namedvaluecollection.cxx index 8b390d7fdd7a..c0d3d0342889 100644 --- a/comphelper/source/misc/namedvaluecollection.cxx +++ b/comphelper/source/misc/namedvaluecollection.cxx @@ -58,7 +58,7 @@ namespace comphelper //==================================================================== //= NamedValueCollection_Impl //==================================================================== - typedef ::boost::unordered_map< ::rtl::OUString, Any, ::rtl::OUStringHash > NamedValueRepository; + typedef ::boost::unordered_map< OUString, Any, OUStringHash > NamedValueRepository; struct NamedValueCollection_Impl { @@ -162,9 +162,9 @@ namespace comphelper } //-------------------------------------------------------------------- - ::std::vector< ::rtl::OUString > NamedValueCollection::getNames() const + ::std::vector< OUString > NamedValueCollection::getNames() const { - ::std::vector< ::rtl::OUString > aNames; + ::std::vector< OUString > aNames; for ( NamedValueRepository::const_iterator it = m_pImpl->aValues.begin(), end = m_pImpl->aValues.end(); it != end; ++it ) { aNames.push_back( it->first ); @@ -251,7 +251,7 @@ namespace comphelper } //-------------------------------------------------------------------- - bool NamedValueCollection::get_ensureType( const ::rtl::OUString& _rValueName, void* _pValueLocation, const Type& _rExpectedValueType ) const + bool NamedValueCollection::get_ensureType( const OUString& _rValueName, void* _pValueLocation, const Type& _rExpectedValueType ) const { NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName ); if ( pos != m_pImpl->aValues.end() ) @@ -267,7 +267,7 @@ namespace comphelper return true; // argument exists, but is of wrong type - ::rtl::OUStringBuffer aBuffer; + OUStringBuffer aBuffer; aBuffer.appendAscii( "Invalid value type for '" ); aBuffer.append ( _rValueName ); aBuffer.appendAscii( "'.\nExpected: " ); @@ -287,7 +287,7 @@ namespace comphelper } //-------------------------------------------------------------------- - const Any& NamedValueCollection::impl_get( const ::rtl::OUString& _rValueName ) const + const Any& NamedValueCollection::impl_get( const OUString& _rValueName ) const { NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName ); if ( pos != m_pImpl->aValues.end() ) @@ -297,14 +297,14 @@ namespace comphelper } //-------------------------------------------------------------------- - bool NamedValueCollection::impl_has( const ::rtl::OUString& _rValueName ) const + bool NamedValueCollection::impl_has( const OUString& _rValueName ) const { NamedValueRepository::const_iterator pos = m_pImpl->aValues.find( _rValueName ); return ( pos != m_pImpl->aValues.end() ); } //-------------------------------------------------------------------- - bool NamedValueCollection::impl_put( const ::rtl::OUString& _rValueName, const Any& _rValue ) + bool NamedValueCollection::impl_put( const OUString& _rValueName, const Any& _rValue ) { bool bHas = impl_has( _rValueName ); m_pImpl->aValues[ _rValueName ] = _rValue; @@ -312,7 +312,7 @@ namespace comphelper } //-------------------------------------------------------------------- - bool NamedValueCollection::impl_remove( const ::rtl::OUString& _rValueName ) + bool NamedValueCollection::impl_remove( const OUString& _rValueName ) { NamedValueRepository::iterator pos = m_pImpl->aValues.find( _rValueName ); if ( pos == m_pImpl->aValues.end() ) diff --git a/comphelper/source/misc/numberedcollection.cxx b/comphelper/source/misc/numberedcollection.cxx index aa9d43578283..f7f4d122c009 100644 --- a/comphelper/source/misc/numberedcollection.cxx +++ b/comphelper/source/misc/numberedcollection.cxx @@ -53,7 +53,7 @@ void NumberedCollection::setOwner(const css::uno::Reference< css::uno::XInterfac } //----------------------------------------------- -void NumberedCollection::setUntitledPrefix(const ::rtl::OUString& sPrefix) +void NumberedCollection::setUntitledPrefix(const OUString& sPrefix) { // SYNCHRONIZED -> ::osl::ResettableMutexGuard aLock(m_aMutex); @@ -72,7 +72,7 @@ void NumberedCollection::setUntitledPrefix(const ::rtl::OUString& sPrefix) ::osl::ResettableMutexGuard aLock(m_aMutex); if ( ! xComponent.is ()) - throw css::lang::IllegalArgumentException (rtl::OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1); + throw css::lang::IllegalArgumentException (OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1); long pComponent = (long) xComponent.get (); TNumberedItemHash::const_iterator pIt = m_lComponents.find (pComponent); @@ -148,7 +148,7 @@ void SAL_CALL NumberedCollection::releaseNumberForComponent(const css::uno::Refe ::osl::ResettableMutexGuard aLock(m_aMutex); if ( ! xComponent.is ()) - throw css::lang::IllegalArgumentException (rtl::OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1); + throw css::lang::IllegalArgumentException (OUString(ERRMSG_INVALID_COMPONENT_PARAM), m_xOwner.get(), 1); long pComponent = (long) xComponent.get (); TNumberedItemHash::iterator pIt = m_lComponents.find (pComponent); @@ -164,7 +164,7 @@ void SAL_CALL NumberedCollection::releaseNumberForComponent(const css::uno::Refe } //----------------------------------------------- -::rtl::OUString SAL_CALL NumberedCollection::getUntitledPrefix() +OUString SAL_CALL NumberedCollection::getUntitledPrefix() throw (css::uno::RuntimeException) { // SYNCHRONIZED -> diff --git a/comphelper/source/misc/numbers.cxx b/comphelper/source/misc/numbers.cxx index 48b232ba334f..8bd744f77946 100644 --- a/comphelper/source/misc/numbers.cxx +++ b/comphelper/source/misc/numbers.cxx @@ -72,7 +72,7 @@ staruno::Any getNumberFormatDecimals(const staruno::Reference<starutil::XNumberF staruno::Reference<starbeans::XPropertySet> xFormat( xFormats->getByKey(nKey)); if (xFormat.is()) { - static ::rtl::OUString PROPERTY_DECIMALS( "Decimals" ); + static OUString PROPERTY_DECIMALS( "Decimals" ); return xFormat->getPropertyValue(PROPERTY_DECIMALS); } } @@ -105,7 +105,7 @@ using namespace ::com::sun::star::util; using namespace ::com::sun::star::beans; //------------------------------------------------------------------------------ -Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, sal_Int32 _nKey, const rtl::OUString& _rPropertyName ) +Any getNumberFormatProperty( const Reference< XNumberFormatter >& _rxFormatter, sal_Int32 _nKey, const OUString& _rPropertyName ) { Any aReturn; diff --git a/comphelper/source/misc/officeresourcebundle.cxx b/comphelper/source/misc/officeresourcebundle.cxx index 384b809dee99..01b4e98ccf69 100644 --- a/comphelper/source/misc/officeresourcebundle.cxx +++ b/comphelper/source/misc/officeresourcebundle.cxx @@ -48,13 +48,13 @@ namespace comphelper { private: Reference< XComponentContext > m_xContext; - ::rtl::OUString m_sBaseName; + OUString m_sBaseName; Reference< XResourceBundle > m_xBundle; bool m_bAttemptedCreate; mutable ::osl::Mutex m_aMutex; public: - ResourceBundle_Impl( const Reference< XComponentContext >& _context, const ::rtl::OUString& _baseName ) + ResourceBundle_Impl( const Reference< XComponentContext >& _context, const OUString& _baseName ) :m_xContext( _context ) ,m_sBaseName( _baseName ) ,m_bAttemptedCreate( false ) @@ -70,7 +70,7 @@ namespace comphelper an empty string is returned. In a non-product version, an OSL_ENSURE will notify you of this then. */ - ::rtl::OUString loadString( sal_Int32 _resourceId ) const; + OUString loadString( sal_Int32 _resourceId ) const; /** determines whether the resource bundle has a string with the given id @param _resourceId @@ -94,25 +94,25 @@ namespace comphelper /** returns the resource bundle key for a string with a given resource id */ - static ::rtl::OUString + static OUString impl_getStringResourceKey( sal_Int32 _resourceId ); }; //-------------------------------------------------------------------- - ::rtl::OUString ResourceBundle_Impl::impl_getStringResourceKey( sal_Int32 _resourceId ) + OUString ResourceBundle_Impl::impl_getStringResourceKey( sal_Int32 _resourceId ) { - ::rtl::OUStringBuffer key; + OUStringBuffer key; key.appendAscii( "string:" ); key.append( _resourceId ); return key.makeStringAndClear(); } //-------------------------------------------------------------------- - ::rtl::OUString ResourceBundle_Impl::loadString( sal_Int32 _resourceId ) const + OUString ResourceBundle_Impl::loadString( sal_Int32 _resourceId ) const { ::osl::MutexGuard aGuard( m_aMutex ); - ::rtl::OUString sString; + OUString sString; if ( const_cast< ResourceBundle_Impl* >( this )->impl_loadBundle_nothrow() ) { @@ -189,7 +189,7 @@ namespace comphelper //==================================================================== //-------------------------------------------------------------------- OfficeResourceBundle::OfficeResourceBundle( const Reference< XComponentContext >& _context, const sal_Char* _bundleBaseAsciiName ) - :m_pImpl( new ResourceBundle_Impl( _context, ::rtl::OUString::createFromAscii( _bundleBaseAsciiName ) ) ) + :m_pImpl( new ResourceBundle_Impl( _context, OUString::createFromAscii( _bundleBaseAsciiName ) ) ) { if ( !_context.is() ) throw NullPointerException(); @@ -201,7 +201,7 @@ namespace comphelper } //-------------------------------------------------------------------- - ::rtl::OUString OfficeResourceBundle::loadString( sal_Int32 _resourceId ) const + OUString OfficeResourceBundle::loadString( sal_Int32 _resourceId ) const { return m_pImpl->loadString( _resourceId ); } diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx index fed0410ab134..8bde58a3b321 100644 --- a/comphelper/source/misc/officerestartmanager.cxx +++ b/comphelper/source/misc/officerestartmanager.cxx @@ -32,9 +32,9 @@ namespace comphelper { // ---------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames_static() +uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames_static() { - uno::Sequence< rtl::OUString > aResult( 1 ); + uno::Sequence< OUString > aResult( 1 ); aResult[0] = getServiceName_static(); return aResult; } @@ -133,7 +133,7 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ ) // Turn Quickstarter veto off uno::Reference< beans::XPropertySet > xPropertySet( xDesktop, uno::UNO_QUERY_THROW ); - ::rtl::OUString aVetoPropName( "SuspendQuickstartVeto" ); + OUString aVetoPropName( "SuspendQuickstartVeto" ); uno::Any aValue; aValue <<= (sal_Bool)sal_True; xPropertySet->setPropertyValue( aVetoPropName, aValue ); @@ -163,15 +163,15 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ ) // XServiceInfo // ---------------------------------------------------------- -::rtl::OUString SAL_CALL OOfficeRestartManager::getImplementationName() throw (uno::RuntimeException) +OUString SAL_CALL OOfficeRestartManager::getImplementationName() throw (uno::RuntimeException) { return getImplementationName_static(); } // ---------------------------------------------------------- -::sal_Bool SAL_CALL OOfficeRestartManager::supportsService( const ::rtl::OUString& aServiceName ) throw (uno::RuntimeException) +::sal_Bool SAL_CALL OOfficeRestartManager::supportsService( const OUString& aServiceName ) throw (uno::RuntimeException) { - const uno::Sequence< rtl::OUString > & aSupportedNames = getSupportedServiceNames_static(); + const uno::Sequence< OUString > & aSupportedNames = getSupportedServiceNames_static(); for ( sal_Int32 nInd = 0; nInd < aSupportedNames.getLength(); nInd++ ) { if ( aSupportedNames[ nInd ].equals( aServiceName ) ) @@ -182,7 +182,7 @@ void SAL_CALL OOfficeRestartManager::notify( const uno::Any& /* aData */ ) } // ---------------------------------------------------------- -uno::Sequence< ::rtl::OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames() throw (uno::RuntimeException) +uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames() throw (uno::RuntimeException) { return getSupportedServiceNames_static(); } diff --git a/comphelper/source/misc/officerestartmanager.hxx b/comphelper/source/misc/officerestartmanager.hxx index f4594f590aab..536484952b59 100644 --- a/comphelper/source/misc/officerestartmanager.hxx +++ b/comphelper/source/misc/officerestartmanager.hxx @@ -51,14 +51,14 @@ public: virtual ~OOfficeRestartManager() {} - static ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_static(); - static ::rtl::OUString SAL_CALL getImplementationName_static(); + static OUString SAL_CALL getImplementationName_static(); - static ::rtl::OUString SAL_CALL getSingletonName_static(); + static OUString SAL_CALL getSingletonName_static(); - static ::rtl::OUString SAL_CALL getServiceName_static(); + static OUString SAL_CALL getServiceName_static(); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rxContext ); @@ -71,9 +71,9 @@ public: virtual void SAL_CALL notify( const ::com::sun::star::uno::Any& aData ) 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); }; diff --git a/comphelper/source/misc/scopeguard.cxx b/comphelper/source/misc/scopeguard.cxx index 3d3bac67e39b..da1eb7f4058c 100644 --- a/comphelper/source/misc/scopeguard.cxx +++ b/comphelper/source/misc/scopeguard.cxx @@ -36,7 +36,7 @@ ScopeGuard::~ScopeGuard() catch (com::sun::star::uno::Exception & exc) { (void) exc; // avoid warning about unused variable OSL_FAIL( - rtl::OUStringToOString( "UNO exception occurred: " + + OUStringToOString( "UNO exception occurred: " + exc.Message, RTL_TEXTENCODING_UTF8 ).getStr() ); } catch (...) { diff --git a/comphelper/source/misc/sequence.cxx b/comphelper/source/misc/sequence.cxx index dacba9d62be6..9c412390db12 100644 --- a/comphelper/source/misc/sequence.cxx +++ b/comphelper/source/misc/sequence.cxx @@ -25,7 +25,7 @@ namespace comphelper //......................................................................... //------------------------------------------------------------------------------ -staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< ::rtl::OUString >& _rList, const ::rtl::OUString& _rValue, sal_Bool _bOnlyFirst) +staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< OUString >& _rList, const OUString& _rValue, sal_Bool _bOnlyFirst) { sal_Int32 nLength = _rList.getLength(); @@ -34,7 +34,7 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< ::rtl::OUString ////////////////////////////////////////////////////////////////////// // An welcher Position finde ich den Wert? sal_Int32 nPos = -1; - const ::rtl::OUString* pTArray = _rList.getConstArray(); + const OUString* pTArray = _rList.getConstArray(); for (sal_Int32 i = 0; i < nLength; ++i, ++pTArray) { if( pTArray->equals(_rValue) ) @@ -64,7 +64,7 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< ::rtl::OUString ////////////////////////////////////////////////////////////////////// // Wie oft kommt der Wert vor? - const ::rtl::OUString* pTArray = _rList.getConstArray(); + const OUString* pTArray = _rList.getConstArray(); for (sal_Int32 i = 0; i < nLength; ++i, ++pTArray) { if( pTArray->equals(_rValue) ) @@ -80,10 +80,10 @@ staruno::Sequence<sal_Int16> findValue(const staruno::Sequence< ::rtl::OUString } } // ----------------------------------------------------------------------------- -sal_Bool existsValue(const ::rtl::OUString& Value,const staruno::Sequence< ::rtl::OUString >& _aList) +sal_Bool existsValue(const OUString& Value,const staruno::Sequence< OUString >& _aList) { - const ::rtl::OUString * pIter = _aList.getConstArray(); - const ::rtl::OUString * pEnd = pIter + _aList.getLength(); + const OUString * pIter = _aList.getConstArray(); + const OUString * pEnd = pIter + _aList.getLength(); return ::std::find(pIter,pEnd,Value) != pEnd; } diff --git a/comphelper/source/misc/sequenceashashmap.cxx b/comphelper/source/misc/sequenceashashmap.cxx index 61f39c74a8bc..24dd7edc9637 100644 --- a/comphelper/source/misc/sequenceashashmap.cxx +++ b/comphelper/source/misc/sequenceashashmap.cxx @@ -211,7 +211,7 @@ sal_Bool SequenceAsHashMap::match(const SequenceAsHashMap& rCheck) const pCheck != rCheck.end() ; ++pCheck ) { - const ::rtl::OUString& sCheckName = pCheck->first; + const OUString& sCheckName = pCheck->first; const css::uno::Any& aCheckValue = pCheck->second; const_iterator pFound = find(sCheckName); @@ -233,7 +233,7 @@ void SequenceAsHashMap::update(const SequenceAsHashMap& rUpdate) pUpdate != rUpdate.end() ; ++pUpdate ) { - const ::rtl::OUString& sName = pUpdate->first; + const OUString& sName = pUpdate->first; const css::uno::Any& aValue = pUpdate->second; (*this)[sName] = aValue; diff --git a/comphelper/source/misc/servicedecl.cxx b/comphelper/source/misc/servicedecl.cxx index b5fd79948020..d48fd4c41789 100644 --- a/comphelper/source/misc/servicedecl.cxx +++ b/comphelper/source/misc/servicedecl.cxx @@ -42,11 +42,11 @@ public: : m_rServiceDecl(rServiceDecl) {} // XServiceInfo: - virtual rtl::OUString SAL_CALL getImplementationName() + virtual OUString SAL_CALL getImplementationName() throw (uno::RuntimeException); - virtual sal_Bool SAL_CALL supportsService( rtl::OUString const& name ) + virtual sal_Bool SAL_CALL supportsService( OUString const& name ) throw (uno::RuntimeException); - virtual uno::Sequence<rtl::OUString> SAL_CALL getSupportedServiceNames() + virtual uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() throw (uno::RuntimeException); // XSingleComponentFactory: virtual uno::Reference<uno::XInterface> SAL_CALL createInstanceWithContext( @@ -69,19 +69,19 @@ ServiceDecl::Factory::~Factory() } // XServiceInfo: -rtl::OUString ServiceDecl::Factory::getImplementationName() +OUString ServiceDecl::Factory::getImplementationName() throw (uno::RuntimeException) { return m_rServiceDecl.getImplementationName(); } -sal_Bool ServiceDecl::Factory::supportsService( rtl::OUString const& name ) +sal_Bool ServiceDecl::Factory::supportsService( OUString const& name ) throw (uno::RuntimeException) { return m_rServiceDecl.supportsService(name); } -uno::Sequence<rtl::OUString> ServiceDecl::Factory::getSupportedServiceNames() +uno::Sequence<OUString> ServiceDecl::Factory::getSupportedServiceNames() throw (uno::RuntimeException) { return m_rServiceDecl.getSupportedServiceNames(); @@ -116,15 +116,15 @@ void * ServiceDecl::getFactory( sal_Char const* pImplName ) const return 0; } -uno::Sequence<rtl::OUString> ServiceDecl::getSupportedServiceNames() const +uno::Sequence<OUString> ServiceDecl::getSupportedServiceNames() const { - std::vector<rtl::OUString> vec; + std::vector<OUString> vec; - rtl::OString const str(m_pServiceNames); + OString const str(m_pServiceNames); sal_Int32 nIndex = 0; do { - rtl::OString const token( str.getToken( 0, m_cDelim, nIndex ) ); - vec.push_back( rtl::OUString( token.getStr(), token.getLength(), + OString const token( str.getToken( 0, m_cDelim, nIndex ) ); + vec.push_back( OUString( token.getStr(), token.getLength(), RTL_TEXTENCODING_ASCII_US ) ); } while (nIndex >= 0); @@ -132,12 +132,12 @@ uno::Sequence<rtl::OUString> ServiceDecl::getSupportedServiceNames() const return comphelper::containerToSequence(vec); } -bool ServiceDecl::supportsService( ::rtl::OUString const& name ) const +bool ServiceDecl::supportsService( OUString const& name ) const { - rtl::OString const str(m_pServiceNames); + OString const str(m_pServiceNames); sal_Int32 nIndex = 0; do { - rtl::OString const token( str.getToken( 0, m_cDelim, nIndex ) ); + OString const token( str.getToken( 0, m_cDelim, nIndex ) ); if (name.equalsAsciiL( token.getStr(), token.getLength() )) return true; } @@ -145,9 +145,9 @@ bool ServiceDecl::supportsService( ::rtl::OUString const& name ) const return false; } -rtl::OUString ServiceDecl::getImplementationName() const +OUString ServiceDecl::getImplementationName() const { - return rtl::OUString::createFromAscii(m_pImplName); + return OUString::createFromAscii(m_pImplName); } } // namespace service_decl diff --git a/comphelper/source/misc/serviceinfohelper.cxx b/comphelper/source/misc/serviceinfohelper.cxx index 1aef59a036d5..896a9296ac5e 100644 --- a/comphelper/source/misc/serviceinfohelper.cxx +++ b/comphelper/source/misc/serviceinfohelper.cxx @@ -27,20 +27,20 @@ namespace comphelper { /** returns an empty UString(). most times sufficient */ -::rtl::OUString SAL_CALL ServiceInfoHelper::getImplementationName() throw( ::com::sun::star::uno::RuntimeException ) +OUString SAL_CALL ServiceInfoHelper::getImplementationName() throw( ::com::sun::star::uno::RuntimeException ) { - return ::rtl::OUString(); + return OUString(); } /** the base implementation iterates over the service names from <code>getSupportedServiceNames</code> */ -sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const ::rtl::OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException) +sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException) { return supportsService( ServiceName, getSupportedServiceNames() ); } -sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const ::rtl::OUString& ServiceName, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& SupportedServices ) throw() +sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const OUString& ServiceName, const ::com::sun::star::uno::Sequence< OUString >& SupportedServices ) throw() { - const ::rtl::OUString * pArray = SupportedServices.getConstArray(); + const OUString * pArray = SupportedServices.getConstArray(); for( sal_Int32 i = 0; i < SupportedServices.getLength(); i++ ) if( pArray[i] == ServiceName ) return sal_True; @@ -48,25 +48,25 @@ sal_Bool SAL_CALL ServiceInfoHelper::supportsService( const ::rtl::OUString& Ser } /** the base implementation has no supported services */ -::com::sun::star::uno::Sequence< ::rtl::OUString > ServiceInfoHelper::getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ) +::com::sun::star::uno::Sequence< OUString > ServiceInfoHelper::getSupportedServiceNames(void) throw( ::com::sun::star::uno::RuntimeException ) { - ::com::sun::star::uno::Sequence< ::rtl::OUString> aSeq(0); + ::com::sun::star::uno::Sequence< OUString> aSeq(0); return aSeq; } /** this method adds a variable number of char pointer to a given Sequence */ -void ServiceInfoHelper::addToSequence( ::com::sun::star::uno::Sequence< ::rtl::OUString >& rSeq, sal_uInt16 nServices, /* char * */ ... ) throw() +void ServiceInfoHelper::addToSequence( ::com::sun::star::uno::Sequence< OUString >& rSeq, sal_uInt16 nServices, /* char * */ ... ) throw() { sal_uInt32 nCount = rSeq.getLength(); rSeq.realloc( nCount + nServices ); - rtl::OUString* pStrings = rSeq.getArray(); + OUString* pStrings = rSeq.getArray(); va_list marker; va_start( marker, nServices ); for( sal_uInt16 i = 0 ; i < nServices; i++ ) - pStrings[nCount++] = rtl::OUString::createFromAscii(va_arg( marker, char*)); + pStrings[nCount++] = OUString::createFromAscii(va_arg( marker, char*)); va_end( marker ); } diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 45f1d79c5d34..d9077ab882f6 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -85,7 +85,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetTemporaryStorage( // ---------------------------------------------------------------------- uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL( - const ::rtl::OUString& aURL, + const OUString& aURL, sal_Int32 nStorageMode, const uno::Reference< uno::XComponentContext >& rxContext ) throw ( uno::Exception ) @@ -104,7 +104,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL( // ---------------------------------------------------------------------- uno::Reference< embed::XStorage > OStorageHelper::GetStorageFromURL2( - const ::rtl::OUString& aURL, + const OUString& aURL, sal_Int32 nStorageMode, const uno::Reference< uno::XComponentContext >& rxContext ) throw ( uno::Exception ) @@ -199,7 +199,7 @@ void OStorageHelper::CopyInputToOutput( // ---------------------------------------------------------------------- uno::Reference< io::XInputStream > OStorageHelper::GetInputStreamFromURL( - const ::rtl::OUString& aURL, + const OUString& aURL, const uno::Reference< uno::XComponentContext >& context ) throw ( uno::Exception ) { @@ -282,8 +282,8 @@ sal_Int32 OStorageHelper::GetXStorageFormat( // ---------------------------------------------------------------------- uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromURL( - const ::rtl::OUString& aFormat, - const ::rtl::OUString& aURL, + const OUString& aFormat, + const OUString& aURL, sal_Int32 nStorageMode, const uno::Reference< uno::XComponentContext >& rxContext, sal_Bool bRepairStorage ) @@ -314,7 +314,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromURL( // ---------------------------------------------------------------------- uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromInputStream( - const ::rtl::OUString& aFormat, + const OUString& aFormat, const uno::Reference < io::XInputStream >& xStream, const uno::Reference< uno::XComponentContext >& rxContext, sal_Bool bRepairStorage ) @@ -345,7 +345,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromInputStr // ---------------------------------------------------------------------- uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromStream( - const ::rtl::OUString& aFormat, + const OUString& aFormat, const uno::Reference < io::XStream >& xStream, sal_Int32 nStorageMode, const uno::Reference< uno::XComponentContext >& rxContext, @@ -376,7 +376,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageOfFormatFromStream( } // ---------------------------------------------------------------------- -uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( const ::rtl::OUString& aPassword ) +uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( const OUString& aPassword ) { // TODO/LATER: Should not the method be part of DocPasswordHelper? uno::Sequence< beans::NamedValue > aEncryptionData; @@ -391,7 +391,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( uno::Reference< xml::crypto::XNSSInitializer > xDigestContextSupplier = xml::crypto::NSSInitializer::create(xContext); uno::Reference< xml::crypto::XDigestContext > xDigestContext( xDigestContextSupplier->getDigestContext( xml::crypto::DigestID::SHA256, uno::Sequence< beans::NamedValue >() ), uno::UNO_SET_THROW ); - ::rtl::OString aUTF8Password( ::rtl::OUStringToOString( aPassword, RTL_TEXTENCODING_UTF8 ) ); + OString aUTF8Password( OUStringToOString( aPassword, RTL_TEXTENCODING_UTF8 ) ); xDigestContext->updateDigest( uno::Sequence< sal_Int8 >( reinterpret_cast< const sal_Int8* >( aUTF8Password.getStr() ), aUTF8Password.getLength() ) ); uno::Sequence< sal_Int8 > aDigest = xDigestContext->finalizeDigestAndDispose(); @@ -415,7 +415,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( for ( sal_Int32 nInd = 0; nInd < 2; nInd++ ) { - ::rtl::OString aByteStrPass = ::rtl::OUStringToOString( aPassword, pEncoding[nInd] ); + OString aByteStrPass = OUStringToOString( aPassword, pEncoding[nInd] ); sal_uInt8 pBuffer[RTL_DIGEST_LENGTH_SHA1]; rtlDigestError nError = rtl_digest_SHA1( aByteStrPass.getStr(), @@ -437,7 +437,7 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreatePackageEncryptionData( } // ---------------------------------------------------------------------- -sal_Bool OStorageHelper::IsValidZipEntryFileName( const ::rtl::OUString& aName, sal_Bool bSlashAllowed ) +sal_Bool OStorageHelper::IsValidZipEntryFileName( const OUString& aName, sal_Bool bSlashAllowed ) { return IsValidZipEntryFileName( aName.getStr(), aName.getLength(), bSlashAllowed ); } @@ -471,7 +471,7 @@ sal_Bool OStorageHelper::IsValidZipEntryFileName( } // ---------------------------------------------------------------------- -sal_Bool OStorageHelper::PathHasSegment( const ::rtl::OUString& aPath, const ::rtl::OUString& aSegment ) +sal_Bool OStorageHelper::PathHasSegment( const OUString& aPath, const OUString& aSegment ) { sal_Bool bResult = sal_False; const sal_Int32 nPathLen = aPath.getLength(); @@ -521,8 +521,8 @@ void LifecycleProxy::commitStorages() } } -static void splitPath( std::vector<rtl::OUString> &rElems, - const ::rtl::OUString& rPath ) +static void splitPath( std::vector<OUString> &rElems, + const OUString& rPath ) { for (sal_Int32 i = 0; i >= 0;) rElems.push_back( rPath.getToken( 0, '/', i ) ); @@ -530,7 +530,7 @@ static void splitPath( std::vector<rtl::OUString> &rElems, static uno::Reference< embed::XStorage > LookupStorageAtPath( const uno::Reference< embed::XStorage > &xParentStorage, - std::vector<rtl::OUString> &rElems, sal_uInt32 nOpenMode, + std::vector<OUString> &rElems, sal_uInt32 nOpenMode, LifecycleProxy &rNastiness ) { uno::Reference< embed::XStorage > xStorage( xParentStorage ); @@ -545,22 +545,22 @@ static uno::Reference< embed::XStorage > LookupStorageAtPath( uno::Reference< embed::XStorage > OStorageHelper::GetStorageAtPath( const uno::Reference< embed::XStorage > &xStorage, - const ::rtl::OUString& rPath, sal_uInt32 nOpenMode, + const OUString& rPath, sal_uInt32 nOpenMode, LifecycleProxy &rNastiness ) { - std::vector<rtl::OUString> aElems; + std::vector<OUString> aElems; splitPath( aElems, rPath ); return LookupStorageAtPath( xStorage, aElems, nOpenMode, rNastiness ); } uno::Reference< io::XStream > OStorageHelper::GetStreamAtPath( const uno::Reference< embed::XStorage > &xParentStorage, - const ::rtl::OUString& rPath, sal_uInt32 nOpenMode, + const OUString& rPath, sal_uInt32 nOpenMode, LifecycleProxy &rNastiness ) { - std::vector<rtl::OUString> aElems; + std::vector<OUString> aElems; splitPath( aElems, rPath ); - rtl::OUString aName( aElems.back() ); + OUString aName( aElems.back() ); aElems.pop_back(); sal_uInt32 nStorageMode = nOpenMode & ~embed::ElementModes::TRUNCATE; uno::Reference< embed::XStorage > xStorage( @@ -571,7 +571,7 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPath( uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL( uno::Reference< embed::XStorage > const& xParentStorage, - const ::rtl::OUString& rURL, sal_uInt32 const nOpenMode, + const OUString& rURL, sal_uInt32 const nOpenMode, LifecycleProxy & rNastiness) { static char const s_PkgScheme[] = "vnd.sun.star.Package:"; @@ -579,7 +579,7 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL( rURL.getStr(), rURL.getLength(), s_PkgScheme, SAL_N_ELEMENTS(s_PkgScheme) - 1)) { - ::rtl::OUString const path(rURL.copy(SAL_N_ELEMENTS(s_PkgScheme)-1)); + OUString const path(rURL.copy(SAL_N_ELEMENTS(s_PkgScheme)-1)); return GetStreamAtPath(xParentStorage, path, nOpenMode, rNastiness); } return 0; diff --git a/comphelper/source/misc/string.cxx b/comphelper/source/misc/string.cxx index 8af97dc75685..fc15b09f17a1 100644 --- a/comphelper/source/misc/string.cxx +++ b/comphelper/source/misc/string.cxx @@ -62,14 +62,14 @@ namespace } } -rtl::OString stripStart(const rtl::OString &rIn, sal_Char c) +OString stripStart(const OString &rIn, sal_Char c) { - return tmpl_stripStart<rtl::OString, sal_Char>(rIn, c); + return tmpl_stripStart<OString, sal_Char>(rIn, c); } -rtl::OUString stripStart(const rtl::OUString &rIn, sal_Unicode c) +OUString stripStart(const OUString &rIn, sal_Unicode c) { - return tmpl_stripStart<rtl::OUString, sal_Unicode>(rIn, c); + return tmpl_stripStart<OUString, sal_Unicode>(rIn, c); } namespace @@ -93,22 +93,22 @@ namespace } } -rtl::OString stripEnd(const rtl::OString &rIn, sal_Char c) +OString stripEnd(const OString &rIn, sal_Char c) { - return tmpl_stripEnd<rtl::OString, sal_Char>(rIn, c); + return tmpl_stripEnd<OString, sal_Char>(rIn, c); } -rtl::OUString stripEnd(const rtl::OUString &rIn, sal_Unicode c) +OUString stripEnd(const OUString &rIn, sal_Unicode c) { - return tmpl_stripEnd<rtl::OUString, sal_Unicode>(rIn, c); + return tmpl_stripEnd<OUString, sal_Unicode>(rIn, c); } -rtl::OString strip(const rtl::OString &rIn, sal_Char c) +OString strip(const OString &rIn, sal_Char c) { return stripEnd(stripStart(rIn, c), c); } -rtl::OUString strip(const rtl::OUString &rIn, sal_Unicode c) +OUString strip(const OUString &rIn, sal_Unicode c) { return stripEnd(stripStart(rIn, c), c); } @@ -132,18 +132,18 @@ namespace } } -sal_Int32 getTokenCount(const rtl::OString &rIn, sal_Char cTok) +sal_Int32 getTokenCount(const OString &rIn, sal_Char cTok) { - return tmpl_getTokenCount<rtl::OString, sal_Char>(rIn, cTok); + return tmpl_getTokenCount<OString, sal_Char>(rIn, cTok); } -sal_Int32 getTokenCount(const rtl::OUString &rIn, sal_Unicode cTok) +sal_Int32 getTokenCount(const OUString &rIn, sal_Unicode cTok) { - return tmpl_getTokenCount<rtl::OUString, sal_Unicode>(rIn, cTok); + return tmpl_getTokenCount<OUString, sal_Unicode>(rIn, cTok); } sal_uInt32 decimalStringToNumber( - ::rtl::OUString const & str ) + OUString const & str ) { sal_uInt32 result = 0; for( sal_Int32 i = 0 ; i < str.getLength() ; ) @@ -243,10 +243,10 @@ using namespace ::com::sun::star; // convert between sequence of string and comma separated string -::rtl::OUString convertCommaSeparated( - uno::Sequence< ::rtl::OUString > const& i_rSeq) +OUString convertCommaSeparated( + uno::Sequence< OUString > const& i_rSeq) { - ::rtl::OUStringBuffer buf; + OUStringBuffer buf; ::comphelper::intersperse( ::comphelper::stl_begin(i_rSeq), ::comphelper::stl_end(i_rSeq), ::comphelper::OUStringBufferAppender(buf), @@ -254,26 +254,26 @@ using namespace ::com::sun::star; return buf.makeStringAndClear(); } -uno::Sequence< ::rtl::OUString > - convertCommaSeparated( ::rtl::OUString const& i_rString ) +uno::Sequence< OUString > + convertCommaSeparated( OUString const& i_rString ) { - std::vector< ::rtl::OUString > vec; + std::vector< OUString > vec; sal_Int32 idx = 0; do { - ::rtl::OUString kw = + OUString kw = i_rString.getToken(0, static_cast<sal_Unicode> (','), idx); kw = kw.trim(); if (!kw.isEmpty()) { vec.push_back(kw); } } while (idx >= 0); - uno::Sequence< ::rtl::OUString > kws(vec.size()); + uno::Sequence< OUString > kws(vec.size()); std::copy(vec.begin(), vec.end(), stl_begin(kws)); return kws; } -sal_Int32 compareNatural( const ::rtl::OUString & rLHS, const ::rtl::OUString & rRHS, +sal_Int32 compareNatural( const OUString & rLHS, const OUString & rRHS, const uno::Reference< i18n::XCollator > &rCollator, const uno::Reference< i18n::XBreakIterator > &rBI, const lang::Locale &rLocale ) @@ -365,12 +365,12 @@ namespace } } -bool isdigitAsciiString(const rtl::OString &rString) +bool isdigitAsciiString(const OString &rString) { return tmpl_is_OPER_AsciiString<isdigitAscii>(rString); } -bool isdigitAsciiString(const rtl::OUString &rString) +bool isdigitAsciiString(const OUString &rString) { return tmpl_is_OPER_AsciiString<isdigitAscii>(rString); } @@ -390,17 +390,17 @@ namespace } } -rtl::OUString reverseString(const rtl::OUString &rStr) +OUString reverseString(const OUString &rStr) { - return tmpl_reverseString<rtl::OUString, rtl::OUStringBuffer>(rStr); + return tmpl_reverseString<OUString, OUStringBuffer>(rStr); } -rtl::OString reverseString(const rtl::OString &rStr) +OString reverseString(const OString &rStr) { - return tmpl_reverseString<rtl::OString, rtl::OStringBuffer>(rStr); + return tmpl_reverseString<OString, OStringBuffer>(rStr); } -sal_Int32 indexOfAny(rtl::OUString const& rIn, +sal_Int32 indexOfAny(OUString const& rIn, sal_Unicode const*const pChars, sal_Int32 const nPos) { for (sal_Int32 i = nPos; i < rIn.getLength(); ++i) diff --git a/comphelper/source/misc/synchronousdispatch.cxx b/comphelper/source/misc/synchronousdispatch.cxx index d56f78b680b6..265c052b1436 100644 --- a/comphelper/source/misc/synchronousdispatch.cxx +++ b/comphelper/source/misc/synchronousdispatch.cxx @@ -41,8 +41,8 @@ using namespace ::com::sun::star; uno::Reference< lang::XComponent > SynchronousDispatch::dispatch( const uno::Reference< uno::XInterface > &xStartPoint, - const rtl::OUString &sURL, - const rtl::OUString &sTarget, + const OUString &sURL, + const OUString &sTarget, const sal_Int32 nFlags, const uno::Sequence< beans::PropertyValue > &lArguments ) { diff --git a/comphelper/source/misc/types.cxx b/comphelper/source/misc/types.cxx index 62d24e9e78e6..e77176fb2351 100644 --- a/comphelper/source/misc/types.cxx +++ b/comphelper/source/misc/types.cxx @@ -111,9 +111,9 @@ float getFloat(const Any& _rAny) } //------------------------------------------------------------------------------ -::rtl::OUString getString(const Any& _rAny) +OUString getString(const Any& _rAny) { - ::rtl::OUString nReturn; + OUString nReturn; OSL_VERIFY( _rAny >>= nReturn ); return nReturn; } @@ -229,7 +229,7 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue) } case TypeClass_STRING: { - ::rtl::OUString aDummy; + OUString aDummy; bConversionSuccess = tryCompare(pData, _rValue, bRes, aDummy); break; } @@ -393,20 +393,20 @@ sal_Bool compare_impl(const Type& _rType, const void* pData, const Any& _rValue) memcmp(rLeftSeq.getConstArray(), rRightSeq.getConstArray(), rLeftSeq.getLength()*sizeof(sal_uInt32)) == 0; } } - else if (isA(_rType, static_cast< Sequence< ::rtl::OUString >* >(NULL))) + else if (isA(_rType, static_cast< Sequence< OUString >* >(NULL))) { - Sequence< ::rtl::OUString > aTemp; + Sequence< OUString > aTemp; bConversionSuccess = _rValue >>= aTemp; if (bConversionSuccess) { - const Sequence< ::rtl::OUString >& rLeftSeq = *reinterpret_cast<const Sequence< ::rtl::OUString>*>(pData); - const Sequence< ::rtl::OUString >& rRightSeq = aTemp; + const Sequence< OUString >& rLeftSeq = *reinterpret_cast<const Sequence< OUString>*>(pData); + const Sequence< OUString >& rRightSeq = aTemp; sal_Int32 nSeqLen = rLeftSeq.getLength(); bRes = ( nSeqLen == rRightSeq.getLength() ); for ( sal_Int32 n = 0; bRes && ( n < nSeqLen ); n++ ) { - const ::rtl::OUString& rS1 = rLeftSeq.getConstArray()[n]; - const ::rtl::OUString& rS2 = rRightSeq.getConstArray()[n]; + const OUString& rS1 = rLeftSeq.getConstArray()[n]; + const OUString& rS2 = rRightSeq.getConstArray()[n]; bRes = ( rS1 == rS2 ); } } |