diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 12:06:47 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-04-07 14:23:11 +0200 |
commit | 1946794ae09ba732022fe6a74ea45e304ab70b84 (patch) | |
tree | e32bd7ba61fa021ecc7f8c85959df8ca837d6e81 /ucb/source/ucp/gvfs | |
parent | 5b08c6e7a21dda94d5b755eea0b1ed1e9c199bec (diff) |
mass removal of rtl:: prefixes for O(U)String*
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
have kept them, in order not to break external API (the automatic using declaration
is LO-internal).
Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
Diffstat (limited to 'ucb/source/ucp/gvfs')
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_content.cxx | 188 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_content.hxx | 14 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_directory.cxx | 16 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_directory.hxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_provider.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/gvfs/gvfs_stream.cxx | 3 |
6 files changed, 114 insertions, 115 deletions
diff --git a/ucb/source/ucp/gvfs/gvfs_content.cxx b/ucb/source/ucp/gvfs/gvfs_content.cxx index 8e7778b3884d..22c9d1aef1e2 100644 --- a/ucb/source/ucp/gvfs/gvfs_content.cxx +++ b/ucb/source/ucp/gvfs/gvfs_content.cxx @@ -90,19 +90,19 @@ using namespace com::sun::star; static char * -OUStringToGnome( const rtl::OUString &str ) +OUStringToGnome( const OUString &str ) { - rtl::OString aTempStr = rtl::OUStringToOString( str, RTL_TEXTENCODING_UTF8 ); + OString aTempStr = OUStringToOString( str, RTL_TEXTENCODING_UTF8 ); return g_strdup( aTempStr.getStr() ); } -static rtl::OUString +static OUString GnomeToOUString( const char *utf8_str) { if (!utf8_str) - return rtl::OUString(); + return OUString(); else - return rtl::OUString( utf8_str, strlen( utf8_str ), RTL_TEXTENCODING_UTF8 ); + return OUString( utf8_str, strlen( utf8_str ), RTL_TEXTENCODING_UTF8 ); } @@ -235,17 +235,17 @@ uno::Sequence< uno::Type > SAL_CALL Content::getTypes() // XServiceInfo methods. // -rtl::OUString SAL_CALL Content::getImplementationName() +OUString SAL_CALL Content::getImplementationName() throw( uno::RuntimeException ) { - return rtl::OUString("com.sun.star.comp.GnomeVFSContent"); + return OUString("com.sun.star.comp.GnomeVFSContent"); } -uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames() +uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() throw( uno::RuntimeException ) { - uno::Sequence< rtl::OUString > aSNS( 1 ); - aSNS.getArray()[ 0 ] = rtl::OUString( "com.sun.star.ucb.GnomeVFSContent" ); + uno::Sequence< OUString > aSNS( 1 ); + aSNS.getArray()[ 0 ] = OUString( "com.sun.star.ucb.GnomeVFSContent" ); return aSNS; } @@ -253,13 +253,13 @@ uno::Sequence< rtl::OUString > SAL_CALL Content::getSupportedServiceNames() // XContent methods. // -rtl::OUString SAL_CALL Content::getContentType() +OUString SAL_CALL Content::getContentType() throw( uno::RuntimeException ) { if ( isFolder( uno::Reference< ucb::XCommandEnvironment >() ) ) - return rtl::OUString( GVFS_FOLDER_TYPE ); + return OUString( GVFS_FOLDER_TYPE ); else - return rtl::OUString( GVFS_FILE_TYPE ); + return OUString( GVFS_FILE_TYPE ); } // @@ -269,7 +269,7 @@ rtl::OUString SAL_CALL Content::getContentType() uno::Any Content::getBadArgExcept() { return uno::makeAny( lang::IllegalArgumentException - ( rtl::OUString("Wrong argument type!"), + ( OUString("Wrong argument type!"), static_cast< cppu::OWeakObject * >( this ), -1 ) ); } @@ -346,7 +346,7 @@ uno::Any SAL_CALL Content::execute( == ucb::OpenMode::DOCUMENT_SHARE_DENY_WRITE ) ) { ucbhelper::cancelCommandExecution ( uno::makeAny ( ucb::UnsupportedOpenModeException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), sal_Int16( aOpenCommand.Mode ) ) ), xEnv ); @@ -360,7 +360,7 @@ uno::Any SAL_CALL Content::execute( #endif ucbhelper::cancelCommandExecution ( uno::makeAny (ucb::UnsupportedDataSinkException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), aOpenCommand.Sink ) ), xEnv ); @@ -390,7 +390,7 @@ uno::Any SAL_CALL Content::execute( sal_Bool bDeletePhysical = sal_False; aCommand.Argument >>= bDeletePhysical; - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); GnomeVFSResult result = gnome_vfs_unlink (aURI.getStr()); if (result != GNOME_VFS_OK) @@ -413,7 +413,7 @@ uno::Any SAL_CALL Content::execute( #endif ucbhelper::cancelCommandExecution ( uno::makeAny( ucb::UnsupportedCommandException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); } @@ -443,19 +443,19 @@ uno::Sequence< ucb::ContentInfo > Content::queryCreatableContentsInfo( // Minimum set of props we really need uno::Sequence< beans::Property > props( 1 ); props[0] = beans::Property( - rtl::OUString("Title"), + OUString("Title"), -1, - getCppuType( static_cast< rtl::OUString* >( 0 ) ), + getCppuType( static_cast< OUString* >( 0 ) ), beans::PropertyAttribute::MAYBEVOID | beans::PropertyAttribute::BOUND ); // file - seq[0].Type = rtl::OUString( GVFS_FILE_TYPE ); + seq[0].Type = OUString( GVFS_FILE_TYPE ); seq[0].Attributes = ( ucb::ContentInfoAttribute::INSERT_WITH_INPUTSTREAM | ucb::ContentInfoAttribute::KIND_DOCUMENT ); seq[0].Properties = props; // folder - seq[1].Type = rtl::OUString( GVFS_FOLDER_TYPE ); + seq[1].Type = OUString( GVFS_FOLDER_TYPE ); seq[1].Attributes = ucb::ContentInfoAttribute::KIND_FOLDER; seq[1].Properties = props; @@ -496,14 +496,14 @@ Content::createNewContent( const ucb::ContentInfo& Info ) g_warning( "createNewContent (%d)", (int) create_document ); #endif - rtl::OUString aURL = getOUURI(); + OUString aURL = getOUURI(); if ( ( aURL.lastIndexOf( '/' ) + 1 ) != aURL.getLength() ) - aURL += rtl::OUString("/"); + aURL += OUString("/"); name = create_document ? "[New_Content]" : "[New_Collection]"; // This looks problematic to me cf. webdav - aURL += rtl::OUString::createFromAscii( name ); + aURL += OUString::createFromAscii( name ); uno::Reference< ucb::XContentIdentifier > xId ( new ::ucbhelper::ContentIdentifier( aURL ) ); @@ -515,9 +515,9 @@ Content::createNewContent( const ucb::ContentInfo& Info ) } } -rtl::OUString Content::getParentURL() +OUString Content::getParentURL() { - rtl::OUString aParentURL; + OUString aParentURL; // <scheme>:// -> "" // <scheme>://foo -> "" // <scheme>://foo/ -> "" @@ -525,7 +525,7 @@ rtl::OUString Content::getParentURL() // <scheme>://foo/bar/ -> <scheme>://foo/ // <scheme>://foo/bar/abc -> <scheme>://foo/bar/ - rtl::OUString aURL = getOUURI(); + OUString aURL = getOUURI(); sal_Int32 nPos = aURL.lastIndexOf( '/' ); if ( nPos == ( aURL.getLength() - 1 ) ) { @@ -538,11 +538,11 @@ rtl::OUString Content::getParentURL() nPos1 = aURL.lastIndexOf( '/', nPos1 ); if ( nPos1 != -1 ) - aParentURL = rtl::OUString( aURL.copy( 0, nPos + 1 ) ); + aParentURL = OUString( aURL.copy( 0, nPos + 1 ) ); #if OSL_DEBUG_LEVEL > 1 g_warning ("getParentURL '%s' -> '%s'", - getURI(), rtl::OUStringToOString + getURI(), OUStringToOString ( aParentURL, RTL_TEXTENCODING_UTF8 ).getStr() ); #endif @@ -621,7 +621,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues( GnomeVFSFileInfo* fileInfo = gnome_vfs_file_info_new (); - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); gnome_vfs_get_file_info ( aURI.getStr(), fileInfo, GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS ); @@ -691,16 +691,16 @@ static lang::IllegalAccessException getReadOnlyException( Content *ctnt ) { return lang::IllegalAccessException - ( rtl::OUString("Property is read-only!"), + ( OUString("Property is read-only!"), static_cast< cppu::OWeakObject * >( ctnt ) ); } -rtl::OUString +OUString Content::makeNewURL( const char */*newName*/ ) { - rtl::OUString aNewURL = getParentURL(); + OUString aNewURL = getParentURL(); if ( aNewURL.lastIndexOf( '/' ) != ( aNewURL.getLength() - 1 ) ) - aNewURL += rtl::OUString("/"); + aNewURL += OUString("/"); char *name = gnome_vfs_escape_string( m_info.name ); aNewURL += GnomeToOUString( name ); @@ -719,7 +719,7 @@ Content::doSetFileInfo( const GnomeVFSFileInfo *newInfo, g_assert (!m_bTransient); - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); osl::Guard< osl::Mutex > aGuard( m_aMutex ); @@ -750,7 +750,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( const uno::Sequence< beans::PropertyValue >& rValues, const uno::Reference< ucb::XCommandEnvironment >& xEnv ) { - rtl::OUString aNewTitle; + OUString aNewTitle; GnomeVFSFileInfo newInfo; int setMask = GNOME_VFS_SET_FILE_INFO_NONE; @@ -795,7 +795,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( if ( rValue.Value >>= aNewTitle ) { if ( aNewTitle.isEmpty() ) aRet[ n ] <<= lang::IllegalArgumentException - ( rtl::OUString("Empty title not allowed!"), + ( OUString("Empty title not allowed!"), static_cast< cppu::OWeakObject * >( this ), -1 ); else { char *newName = OUStringToGnome( aNewTitle ); @@ -805,7 +805,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( g_warning ("Set new name to '%s'", newName); #endif - aEvent.PropertyName = rtl::OUString("Title"); + aEvent.PropertyName = OUString("Title"); aEvent.OldValue = uno::makeAny( GnomeToOUString( newInfo.name ) ); aEvent.NewValue = uno::makeAny( aNewTitle ); aChanges.getArray()[ nChanged ] = aEvent; @@ -818,7 +818,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( } } else aRet[ n ] <<= beans::IllegalTypeException - ( rtl::OUString("Property value has wrong type!"), + ( OUString("Property value has wrong type!"), static_cast< cppu::OWeakObject * >( this ) ); } else if ( rValue.Name == "DateCreated" || rValue.Name == "DateModified" ) { @@ -853,7 +853,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues( aGuard.clear(); if (!exchangeIdentity( xNewId ) ) aRet[ nTitlePos ] <<= uno::Exception - ( rtl::OUString("Exchange failed!"), + ( OUString("Exchange failed!"), static_cast< cppu::OWeakObject * >( this ) ); } } @@ -878,11 +878,11 @@ void Content::queryChildren( ContentRefList& rChildren ) ::ucbhelper::ContentRefList aAllContents; m_xProvider->queryExistingContents( aAllContents ); - rtl::OUString aURL = getOUURI(); + OUString aURL = getOUURI(); sal_Int32 nURLPos = aURL.lastIndexOf( '/' ); if ( nURLPos != ( aURL.getLength() - 1 ) ) - aURL += rtl::OUString("/"); + aURL += OUString("/"); sal_Int32 nLen = aURL.getLength(); @@ -891,7 +891,7 @@ void Content::queryChildren( ContentRefList& rChildren ) while ( it != end ) { ::ucbhelper::ContentImplHelperRef xChild = (*it); - rtl::OUString aChildURL + OUString aChildURL = xChild->getIdentifier()->getContentIdentifier(); // Is aURL a prefix of aChildURL? @@ -937,7 +937,7 @@ void Content::insert( if ( m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE && m_info.type == GNOME_VFS_FILE_TYPE_DIRECTORY ) { - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); int perm; perm = ( GNOME_VFS_PERM_USER_ALL | @@ -960,13 +960,13 @@ void Content::insert( ucbhelper::cancelCommandExecution ( uno::makeAny ( ucb::MissingInputStreamException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); } GnomeVFSHandle *handle = NULL; - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); result = GNOME_VFS_ERROR_GENERIC; if ( bReplaceExisting ) { @@ -1016,7 +1016,7 @@ void Content::transfer(const ucb::TransferInfo & /*rArgs*/, ucbhelper::cancelCommandExecution ( uno::makeAny ( ucb::InteractiveBadTransferURLException - ( rtl::OUString("Unsupported URL scheme!"), + ( OUString("Unsupported URL scheme!"), static_cast< cppu::OWeakObject * >( this ) ) ), xEnv ); } @@ -1067,7 +1067,7 @@ sal_Bool Content::exchangeIdentity( return sal_False; } - rtl::OUString aOldURL = getOUURI(); + OUString aOldURL = getOUURI(); // Exchange own identitity. if ( exchange( xNewId ) ) { @@ -1085,9 +1085,9 @@ sal_Bool Content::exchangeIdentity( // Create new content identifier for the child... uno::Reference< ucb::XContentIdentifier > xOldChildId = xChild->getIdentifier(); - rtl::OUString aOldChildURL + OUString aOldChildURL = xOldChildId->getContentIdentifier(); - rtl::OUString aNewChildURL + OUString aNewChildURL = aOldChildURL.replaceAt( 0, aOldURL.getLength(), @@ -1117,7 +1117,7 @@ Content::getInfo( const uno::Reference< ucb::XCommandEnvironment >& xEnv ) result = GNOME_VFS_OK; else if ( !m_info.valid_fields ) { - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); Authentication aAuth( xEnv ); result = gnome_vfs_get_file_info ( aURI.getStr(), &m_info, GNOME_VFS_FILE_INFO_DEFAULT ); @@ -1146,7 +1146,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite { uno::Any aException; const char *gvfs_message; - rtl::OUString message; + OUString message; uno::Sequence< uno::Any > aArgs( 1 ); #if OSL_DEBUG_LEVEL > 1 @@ -1168,7 +1168,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite aArgs[ 0 ] <<= m_xIdentifier->getContentIdentifier(); aException <<= ucb::InteractiveAugmentedIOException - ( rtl::OUString("Not found!"), + ( OUString("Not found!"), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, ucb::IOErrorCode_NOT_EXISTING, @@ -1177,7 +1177,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite case GNOME_VFS_ERROR_BAD_PARAMETERS: aException <<= lang::IllegalArgumentException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), -1 ); break; @@ -1193,14 +1193,14 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite if ( bWrite ) aException <<= ucb::InteractiveNetworkWriteException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, message ); else aException <<= ucb::InteractiveNetworkReadException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, message ); @@ -1209,7 +1209,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite case GNOME_VFS_ERROR_INVALID_HOST_NAME: aException <<= ucb::InteractiveNetworkResolveNameException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, message ); @@ -1220,7 +1220,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite case GNOME_VFS_ERROR_NO_MASTER_BROWSER: aException <<= ucb::InteractiveNetworkConnectException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, message ); @@ -1228,7 +1228,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite case GNOME_VFS_ERROR_FILE_EXISTS: aException <<= ucb::NameClashException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR, message ); @@ -1270,7 +1270,7 @@ uno::Any Content::mapVFSException( const GnomeVFSResult result, sal_Bool bWrite #endif default: aException <<= ucb::InteractiveNetworkGeneralException - ( rtl::OUString(), + ( OUString(), static_cast< cppu::OWeakObject * >( this ), task::InteractionClassification_ERROR ); break; @@ -1293,45 +1293,45 @@ uno::Sequence< beans::Property > Content::getProperties( const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ ) { static const beans::Property aGenericProperties[] = { - beans::Property( rtl::OUString( "ContentType" ), - -1, getCppuType( static_cast< const rtl::OUString * >( 0 ) ), + beans::Property( OUString( "ContentType" ), + -1, getCppuType( static_cast< const OUString * >( 0 ) ), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsDocument" ), + beans::Property( OUString( "IsDocument" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsFolder" ), + beans::Property( OUString( "IsFolder" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "Title" ), - -1, getCppuType( static_cast< const rtl::OUString * >( 0 ) ), + beans::Property( OUString( "Title" ), + -1, getCppuType( static_cast< const OUString * >( 0 ) ), beans::PropertyAttribute::BOUND ), // Optional ... - beans::Property( rtl::OUString( "DateCreated" ), + beans::Property( OUString( "DateCreated" ), -1, getCppuType( static_cast< const util::DateTime * >( 0 ) ), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "DateModified" ), + beans::Property( OUString( "DateModified" ), -1, getCppuType( static_cast< const util::DateTime * >( 0 ) ), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), // FIXME: Too expensive for now (?) -// beans::Property( rtl::OUString( "MediaType" ), -// -1, getCppuType( static_cast< const rtl::OUString * >( 0 ) ), +// beans::Property( OUString( "MediaType" ), +// -1, getCppuType( static_cast< const OUString * >( 0 ) ), // beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "Size" ), + beans::Property( OUString( "Size" ), -1, getCppuType( static_cast< const sal_Int64 * >( 0 ) ), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsReadOnly" ), + beans::Property( OUString( "IsReadOnly" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsVolume" ), + beans::Property( OUString( "IsVolume" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsCompactDisk" ), + beans::Property( OUString( "IsCompactDisk" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "IsHidden" ), + beans::Property( OUString( "IsHidden" ), -1, getCppuBooleanType(), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ), - beans::Property( rtl::OUString( "CreatableContentsInfo" ), + beans::Property( OUString( "CreatableContentsInfo" ), -1, getCppuType( static_cast< const uno::Sequence< ucb::ContentInfo > * >( 0 ) ), beans::PropertyAttribute::BOUND | beans::PropertyAttribute::READONLY ) }; @@ -1348,35 +1348,35 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( static ucb::CommandInfo aCommandInfoTable[] = { // Required commands ucb::CommandInfo - ( rtl::OUString( "getCommandInfo" ), + ( OUString( "getCommandInfo" ), -1, getCppuVoidType() ), ucb::CommandInfo - ( rtl::OUString( "getPropertySetInfo" ), + ( OUString( "getPropertySetInfo" ), -1, getCppuVoidType() ), ucb::CommandInfo - ( rtl::OUString( "getPropertyValues" ), + ( OUString( "getPropertyValues" ), -1, getCppuType( static_cast<uno::Sequence< beans::Property > * >( 0 ) ) ), ucb::CommandInfo - ( rtl::OUString( "setPropertyValues" ), + ( OUString( "setPropertyValues" ), -1, getCppuType( static_cast<uno::Sequence< beans::PropertyValue > * >( 0 ) ) ), // Optional standard commands ucb::CommandInfo - ( rtl::OUString( "delete" ), + ( OUString( "delete" ), -1, getCppuBooleanType() ), ucb::CommandInfo - ( rtl::OUString( "insert" ), + ( OUString( "insert" ), -1, getCppuType( static_cast<ucb::InsertCommandArgument * >( 0 ) ) ), ucb::CommandInfo - ( rtl::OUString( "open" ), + ( OUString( "open" ), -1, getCppuType( static_cast<ucb::OpenCommandArgument2 * >( 0 ) ) ), // Folder Only, omitted if not a folder ucb::CommandInfo - ( rtl::OUString( "transfer" ), + ( OUString( "transfer" ), -1, getCppuType( static_cast<ucb::TransferInfo * >( 0 ) ) ), ucb::CommandInfo - ( rtl::OUString( "createNewContent" ), + ( OUString( "createNewContent" ), -1, getCppuType( static_cast<ucb::ContentInfo * >( 0 ) ) ) }; @@ -1386,17 +1386,17 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( aCommandInfoTable, isFolder( xEnv ) ? nProps : nProps - 2 ); } -rtl::OUString +OUString Content::getOUURI () { osl::Guard< osl::Mutex > aGuard( m_aMutex ); return m_xIdentifier->getContentIdentifier(); } -rtl::OString +OString Content::getOURI () { - return rtl::OUStringToOString( getOUURI(), RTL_TEXTENCODING_UTF8 ); + return OUStringToOString( getOUURI(), RTL_TEXTENCODING_UTF8 ); } char * @@ -1427,7 +1427,7 @@ Content::createTempStream( { GnomeVFSResult result; GnomeVFSHandle *handle = NULL; - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); osl::Guard< osl::Mutex > aGuard( m_aMutex ); // Something badly wrong happened - can't seek => stream to a temporary file @@ -1462,7 +1462,7 @@ Content::createInputStream( osl::Guard< osl::Mutex > aGuard( m_aMutex ); getInfo( xEnv ); - ::rtl::OString aURI = getOURI(); + OString aURI = getOURI(); if ( !(m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_SIZE) ) return createTempStream( xEnv ); @@ -1567,7 +1567,7 @@ extern "C" { ucbhelper::SimpleAuthenticationRequest::EntityType eDomain, eUserName, ePassword; - ::rtl::OUString aHostName, aDomain, aUserName, aPassword; + OUString aHostName, aDomain, aUserName, aPassword; aHostName = GnomeToOUString( in->server ); @@ -1599,7 +1599,7 @@ extern "C" { // the same user/password as was entered last time if // we failed to authenticate - infinite looping / flickering // madness etc. [ nice infrastructure ! ] - static rtl::OUString aLastUserName, aLastPassword; + static OUString aLastUserName, aLastPassword; if (in->flags & GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION_PREVIOUS_ATTEMPT_FAILED) { osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() ); @@ -1626,7 +1626,7 @@ extern "C" { ucbhelper::InteractionSupplyAuthentication > & xSupp = xRequest->getAuthenticationSupplier(); - ::rtl::OUString aNewDomain, aNewUserName, aNewPassword; + OUString aNewDomain, aNewUserName, aNewPassword; aNewUserName = xSupp->getUserName(); if ( !aNewUserName.isEmpty() ) diff --git a/ucb/source/ucp/gvfs/gvfs_content.hxx b/ucb/source/ucp/gvfs/gvfs_content.hxx index 0357987eb4fd..048ea8443636 100644 --- a/ucb/source/ucp/gvfs/gvfs_content.hxx +++ b/ucb/source/ucp/gvfs/gvfs_content.hxx @@ -94,11 +94,11 @@ private: GnomeVFSSetFileInfoMask setMask, const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XCommandEnvironment >& xEnv ); - ::rtl::OUString makeNewURL ( const char *newName ); + OUString makeNewURL ( const char *newName ); // End Internal helpers // For ucbhelper - virtual ::rtl::OUString getParentURL(); + virtual OUString getParentURL(); // For ucbhelper virtual com::sun::star::uno::Sequence< com::sun::star::beans::Property > getProperties( const com::sun::star::uno::Reference< @@ -176,8 +176,8 @@ private: public: // Non-interface bits char *getURI (); - rtl::OString getOURI (); - rtl::OUString getOUURI (); + OString getOURI (); + OUString getOUURI (); //========================================================================= // Externals @@ -206,14 +206,14 @@ public: XTYPEPROVIDER_DECL() // XServiceInfo - virtual ::rtl::OUString SAL_CALL getImplementationName() + virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException ); - virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL + virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException ); // XContent - virtual rtl::OUString SAL_CALL + virtual OUString SAL_CALL getContentType() throw( com::sun::star::uno::RuntimeException ); diff --git a/ucb/source/ucp/gvfs/gvfs_directory.cxx b/ucb/source/ucp/gvfs/gvfs_directory.cxx index 9ca0c2382e44..fb02b50ed9f9 100644 --- a/ucb/source/ucp/gvfs/gvfs_directory.cxx +++ b/ucb/source/ucp/gvfs/gvfs_directory.cxx @@ -72,7 +72,7 @@ void DynamicResultSet::initDynamic() struct ResultListEntry { - rtl::OUString aId; + OUString aId; uno::Reference< ucb::XContentIdentifier > xId; uno::Reference< ucb::XContent > xContent; uno::Reference< sdbc::XRow > xRow; @@ -144,26 +144,26 @@ DataSupplier::~DataSupplier() } // virtual -rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex ) +OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex ) { osl::Guard< osl::Mutex > aGuard( m_pImpl->m_aMutex ); if ( nIndex < m_pImpl->m_aResults.size() ) { - rtl::OUString aId = m_pImpl->m_aResults[ nIndex ]->aId; + OUString aId = m_pImpl->m_aResults[ nIndex ]->aId; if ( !aId.isEmpty() ) // cached return aId; } if ( getResult( nIndex ) ) { - rtl::OUString aId = m_pImpl->m_xContent->getOUURI(); + OUString aId = m_pImpl->m_xContent->getOUURI(); char *escaped_name; escaped_name = gnome_vfs_escape_string( m_pImpl->m_aResults[ nIndex ]->aInfo.name ); if ( ( aId.lastIndexOf( '/' ) + 1 ) != aId.getLength() ) - aId += rtl::OUString("/"); + aId += OUString("/"); - aId += rtl::OUString::createFromAscii( escaped_name ); + aId += OUString::createFromAscii( escaped_name ); g_free( escaped_name ); @@ -171,7 +171,7 @@ rtl::OUString DataSupplier::queryContentIdentifierString( sal_uInt32 nIndex ) return aId; } - return rtl::OUString(); + return OUString(); } // virtual @@ -187,7 +187,7 @@ DataSupplier::queryContentIdentifier( sal_uInt32 nIndex ) return xId; } - rtl::OUString aId = queryContentIdentifierString( nIndex ); + OUString aId = queryContentIdentifierString( nIndex ); if ( !aId.isEmpty() ) { uno::Reference< ucb::XContentIdentifier > xId = new ::ucbhelper::ContentIdentifier( aId ); diff --git a/ucb/source/ucp/gvfs/gvfs_directory.hxx b/ucb/source/ucp/gvfs/gvfs_directory.hxx index e1847b3a470b..37d6aa0c07e4 100644 --- a/ucb/source/ucp/gvfs/gvfs_directory.hxx +++ b/ucb/source/ucp/gvfs/gvfs_directory.hxx @@ -59,7 +59,7 @@ public: virtual ~DataSupplier(); - virtual rtl::OUString queryContentIdentifierString( sal_uInt32 nIndex ); + virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ); virtual com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier > queryContentIdentifier( sal_uInt32 nIndex ); diff --git a/ucb/source/ucp/gvfs/gvfs_provider.cxx b/ucb/source/ucp/gvfs/gvfs_provider.cxx index c849b0b17fc8..ec15ae0abee0 100644 --- a/ucb/source/ucp/gvfs/gvfs_provider.cxx +++ b/ucb/source/ucp/gvfs/gvfs_provider.cxx @@ -76,8 +76,8 @@ XTYPEPROVIDER_IMPL_3( ContentProvider, //========================================================================= XSERVICEINFO_IMPL_1_CTX( ContentProvider, - rtl::OUString( "com.sun.star.comp.GnomeVFSContentProvider" ), - rtl::OUString( "com.sun.star.ucb.GnomeVFSContentProvider" ) ); + OUString( "com.sun.star.comp.GnomeVFSContentProvider" ), + OUString( "com.sun.star.ucb.GnomeVFSContentProvider" ) ); //========================================================================= // // Service factory implementation. @@ -101,7 +101,7 @@ ContentProvider::queryContent( { #if OSL_DEBUG_LEVEL > 1 g_warning ("QueryContent: '%s'", - rtl::OUStringToOString (Identifier->getContentIdentifier(), + OUStringToOString (Identifier->getContentIdentifier(), RTL_TEXTENCODING_UTF8).getStr() ); #endif diff --git a/ucb/source/ucp/gvfs/gvfs_stream.cxx b/ucb/source/ucp/gvfs/gvfs_stream.cxx index 462fde93d9ac..080d484dfb47 100644 --- a/ucb/source/ucp/gvfs/gvfs_stream.cxx +++ b/ucb/source/ucp/gvfs/gvfs_stream.cxx @@ -28,7 +28,6 @@ using namespace com::sun::star::uno; using namespace com::sun::star::ucb; using namespace gvfs; -using ::rtl::OUString; Stream::Stream( GnomeVFSHandle *handle, const GnomeVFSFileInfo *aInfo ) : @@ -322,7 +321,7 @@ void Stream::throwOnError( GnomeVFSResult result ) RuntimeException ) { if( result != GNOME_VFS_OK ) { - ::rtl::OUString aMsg = ::rtl::OUString::createFromAscii + OUString aMsg = OUString::createFromAscii ( gnome_vfs_result_to_string( result ) ); g_warning( "Input Stream exceptional result '%s' (%d)", |