diff options
author | Andy Holder <andy.m.holder@googlemail.com> | 2010-12-11 18:02:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-12 21:16:57 +0000 |
commit | c0bc502f55fe555dc14e18362dcea246ab2f054c (patch) | |
tree | 485a1d7995d953d0d728729e141aa1e78f9a2375 | |
parent | 4dfd93a3b31e8e9421fff0c6b81cd6d4fb8f4103 (diff) |
Change unnamespace file.hxx macros
-rw-r--r-- | basic/source/runtime/iosys.cxx | 10 | ||||
-rw-r--r-- | desktop/source/app/lockfile.cxx | 4 | ||||
-rw-r--r-- | framework/source/services/license.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 2 | ||||
-rw-r--r-- | shell/qa/recent_docs.cxx | 2 | ||||
-rw-r--r-- | svx/source/dialog/docrecovery.cxx | 2 | ||||
-rw-r--r-- | svx/source/unodraw/recoveryui.cxx | 2 | ||||
-rw-r--r-- | ucb/source/ucp/file/filinpstr.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/filrec.cxx | 6 | ||||
-rw-r--r-- | ucb/source/ucp/file/filstr.cxx | 4 | ||||
-rw-r--r-- | ucb/source/ucp/file/shell.cxx | 12 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/inc/util/RandomAccessStream.hxx | 6 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/databases.cxx | 4 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/inputstream.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 4 |
16 files changed, 34 insertions, 34 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index 2b2bbe41133c..d9eafd1e01c2 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -364,21 +364,21 @@ OslStream::OslStream( const String& rName, short nStrmMode ) if( (nStrmMode & (STREAM_READ | STREAM_WRITE)) == (STREAM_READ | STREAM_WRITE) ) { - nFlags = OpenFlag_Read | OpenFlag_Write; + nFlags = osl_File_OpenFlag_Read | osl_File_OpenFlag_Write; } else if( nStrmMode & STREAM_WRITE ) { - nFlags = OpenFlag_Write; + nFlags = osl_File_OpenFlag_Write; } else //if( nStrmMode & STREAM_READ ) { - nFlags = OpenFlag_Read; + nFlags = osl_File_OpenFlag_Read; } osl::FileBase::RC nRet = maFile.open( nFlags ); - if( nRet == osl::FileBase::E_NOENT && nFlags != OpenFlag_Read ) + if( nRet == osl::FileBase::E_NOENT && nFlags != osl_File_OpenFlag_Read ) { - nFlags |= OpenFlag_Create; + nFlags |= osl_File_OpenFlag_Create; nRet = maFile.open( nFlags ); } diff --git a/desktop/source/app/lockfile.cxx b/desktop/source/app/lockfile.cxx index d87b170a29fa..d75e5b8bc5f8 100644 --- a/desktop/source/app/lockfile.cxx +++ b/desktop/source/app/lockfile.cxx @@ -121,7 +121,7 @@ namespace desktop { // try to create file File aFile(m_aLockname); - if (aFile.open( OpenFlag_Create ) == File::E_EXIST) { + if (aFile.open( osl_File_OpenFlag_Create ) == File::E_EXIST) { m_bIsLocked = sal_True; } else { // new lock created @@ -141,7 +141,7 @@ namespace desktop { // remove file and create new File::remove( m_aLockname ); File aFile(m_aLockname); - aFile.open( OpenFlag_Create ); + aFile.open( osl_File_OpenFlag_Create ); aFile.close( ); syncToFile( ); m_bRemove = sal_True; diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx index a4fba2983e8d..2a4dc8b9c31d 100644 --- a/framework/source/services/license.cxx +++ b/framework/source/services/license.cxx @@ -451,7 +451,7 @@ LicenseDialog::LicenseDialog(const ::rtl::OUString & aLicensePath, ResMgr *pResM // load license text File aLicenseFile(aLicensePath); - if ( aLicenseFile.open(OpenFlag_Read) == FileBase::E_None) + if ( aLicenseFile.open(osl_File_OpenFlag_Read) == FileBase::E_None) { DirectoryItem d; DirectoryItem::get(aLicensePath, d); diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 2dece8ce8102..e261c7bbbe12 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -859,7 +859,7 @@ bool ShutdownIcon::GetAutostart( ) OUString aShortcutUrl; osl::File::getFileURLFromSystemPath( aShortcut, aShortcutUrl ); osl::File f( aShortcutUrl ); - osl::File::RC error = f.open( OpenFlag_Read ); + osl::File::RC error = f.open( osl_File_OpenFlag_Read ); if( error == osl::File::E_None ) { f.close(); diff --git a/shell/qa/recent_docs.cxx b/shell/qa/recent_docs.cxx index db4e56a64ab2..b6bd9637d6b6 100644 --- a/shell/qa/recent_docs.cxx +++ b/shell/qa/recent_docs.cxx @@ -137,7 +137,7 @@ public: void read_recently_used(void* buffer, size_t size) { File ruf(get_recently_used_url()); - FileBase::RC rc = ruf.open(OpenFlag_Read); + FileBase::RC rc = ruf.open(osl_File_OpenFlag_Read); CPPUNIT_ASSERT_MESSAGE("Cannot open ~/.recently-used", FileBase::E_None == rc); diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx index 6d6fe2d97924..26ba61659cd9 100644 --- a/svx/source/dialog/docrecovery.cxx +++ b/svx/source/dialog/docrecovery.cxx @@ -2080,7 +2080,7 @@ void BrokenRecoveryDialog::impl_askForSavePath() ::osl::File aFile( rURL ); printf( "Loading %s:", OString( rURL.getStr(), rURL.getLength(), osl_getThreadTextEncoding() ).getStr() ); - if ( ::osl::FileBase::E_None == aFile.open( OpenFlag_Read ) ) + if ( ::osl::FileBase::E_None == aFile.open( osl_File_OpenFlag_Read ) ) { ::rtl::OString aContent; ::osl::FileBase::RC result; diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx index e7e000d54b0d..a39dc2b802e9 100644 --- a/svx/source/unodraw/recoveryui.cxx +++ b/svx/source/unodraw/recoveryui.cxx @@ -231,7 +231,7 @@ static bool new_crash_pending() OUString aUnsentURL = GetUnsentURL(); File aFile( aUnsentURL ); - if ( FileBase::E_None == aFile.open( OpenFlag_Read ) ) + if ( FileBase::E_None == aFile.open( osl_File_OpenFlag_Read ) ) { aFile.close(); return true; diff --git a/ucb/source/ucp/file/filinpstr.cxx b/ucb/source/ucp/file/filinpstr.cxx index 02d5d6b953e6..555a83bb0272 100644 --- a/ucb/source/ucp/file/filinpstr.cxx +++ b/ucb/source/ucp/file/filinpstr.cxx @@ -48,9 +48,9 @@ XInputStream_impl::XInputStream_impl( shell* pMyShell,const rtl::OUString& aUncP m_nErrorCode( TASKHANDLER_NO_ERROR ), m_nMinorErrorCode( TASKHANDLER_NO_ERROR ) { - sal_uInt32 nFlags = OpenFlag_Read; + sal_uInt32 nFlags = osl_File_OpenFlag_Read; if ( !bLock ) - nFlags |= OpenFlag_NoLock; + nFlags |= osl_File_OpenFlag_NoLock; osl::FileBase::RC err = m_aFile.open( nFlags ); if( err != osl::FileBase::E_None ) diff --git a/ucb/source/ucp/file/filrec.cxx b/ucb/source/ucp/file/filrec.cxx index 2e2b979e7e42..0986e3a738ab 100644 --- a/ucb/source/ucp/file/filrec.cxx +++ b/ucb/source/ucp/file/filrec.cxx @@ -46,7 +46,7 @@ sal_Bool ReconnectingFile::reconnect() { disconnect(); if ( m_aFile.open( m_nFlags ) == ::osl::FileBase::E_None - || m_aFile.open( OpenFlag_Read ) == ::osl::FileBase::E_None ) + || m_aFile.open( osl_File_OpenFlag_Read ) == ::osl::FileBase::E_None ) { m_bDisconnect = sal_False; bResult = sal_True; @@ -61,8 +61,8 @@ sal_Bool ReconnectingFile::reconnect() ::osl::FileBase::RC nResult = m_aFile.open( uFlags ); if ( nResult == ::osl::FileBase::E_None ) { - if ( uFlags & OpenFlag_Create ) - m_nFlags = (uFlags & ( ~OpenFlag_Create )) | OpenFlag_Write; + if ( uFlags & osl_File_OpenFlag_Create ) + m_nFlags = (uFlags & ( ~osl_File_OpenFlag_Create )) | osl_File_OpenFlag_Write; else m_nFlags = uFlags; diff --git a/ucb/source/ucp/file/filstr.cxx b/ucb/source/ucp/file/filstr.cxx index 6860acfeac41..63b8fd46b140 100644 --- a/ucb/source/ucp/file/filstr.cxx +++ b/ucb/source/ucp/file/filstr.cxx @@ -110,9 +110,9 @@ XStream_impl::XStream_impl( shell* pMyShell,const rtl::OUString& aUncPath, sal_B m_nErrorCode( TASKHANDLER_NO_ERROR ), m_nMinorErrorCode( TASKHANDLER_NO_ERROR ) { - sal_uInt32 nFlags = ( OpenFlag_Read | OpenFlag_Write ); + sal_uInt32 nFlags = ( osl_File_OpenFlag_Read | osl_File_OpenFlag_Write ); if ( !bLock ) - nFlags |= OpenFlag_NoLock; + nFlags |= osl_File_OpenFlag_NoLock; osl::FileBase::RC err = m_aFile.open( nFlags ); if( err != osl::FileBase::E_None ) diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx index 250d58db9b7f..d4c09b0444b2 100644 --- a/ucb/source/ucp/file/shell.cxx +++ b/ucb/source/ucp/file/shell.cxx @@ -594,7 +594,7 @@ void SAL_CALL shell::page( sal_Int32 CommandId, { uno::Reference< XContentProvider > xProvider( m_pProvider ); osl::File aFile( aUnqPath ); - osl::FileBase::RC err = aFile.open( OpenFlag_Read ); + osl::FileBase::RC err = aFile.open( osl_File_OpenFlag_Read ); if( err != osl::FileBase::E_None ) { @@ -905,7 +905,7 @@ shell::setv( const rtl::OUString& aUnqPath, { // valid value for the size osl::File aFile(aUnqPath); bool err = - aFile.open(OpenFlag_Write) != osl::FileBase::E_None || + aFile.open(osl_File_OpenFlag_Write) != osl::FileBase::E_None || aFile.setSize(sal_uInt64(newSize)) != osl::FileBase::E_None || aFile.close() != osl::FileBase::E_None; @@ -1800,12 +1800,12 @@ shell::write( sal_Int32 CommandId, if( OverWrite ) { - err = aFile.open( OpenFlag_Write | OpenFlag_Create ); + err = aFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Create ); if( err != osl::FileBase::E_None ) { aFile.close(); - err = aFile.open( OpenFlag_Write ); + err = aFile.open( osl_File_OpenFlag_Write ); } if( err != osl::FileBase::E_None ) @@ -1818,7 +1818,7 @@ shell::write( sal_Int32 CommandId, } else { - err = aFile.open( OpenFlag_Read | OpenFlag_NoLock ); + err = aFile.open( osl_File_OpenFlag_Read | osl_File_OpenFlag_NoLock ); if( err == osl::FileBase::E_None ) // The file exists and shall not be overwritten { installError( CommandId, @@ -1831,7 +1831,7 @@ shell::write( sal_Int32 CommandId, // as a temporary solution the creation does not lock the file at all // in future it should be possible to create the file without lock explicitly - err = aFile.open( OpenFlag_Write | OpenFlag_Create | OpenFlag_NoLock ); + err = aFile.open( osl_File_OpenFlag_Write | osl_File_OpenFlag_Create | osl_File_OpenFlag_NoLock ); if( err != osl::FileBase::E_None ) { diff --git a/xmlhelp/source/cxxhelp/inc/util/RandomAccessStream.hxx b/xmlhelp/source/cxxhelp/inc/util/RandomAccessStream.hxx index 8e20d13cbf15..fc88fcba88b4 100644 --- a/xmlhelp/source/cxxhelp/inc/util/RandomAccessStream.hxx +++ b/xmlhelp/source/cxxhelp/inc/util/RandomAccessStream.hxx @@ -51,9 +51,9 @@ namespace xmlsearch { protected: - enum OPENFLAG { Read = OpenFlag_Read, - Write = OpenFlag_Write, - Create = OpenFlag_Create }; + enum OPENFLAG { Read = osl_File_OpenFlag_Read, + Write = osl_File_OpenFlag_Write, + Create = osl_File_OpenFlag_Create }; }; diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 711021d17627..47efc881a64a 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -494,7 +494,7 @@ StaticModuleInformation* Databases::getStaticInformationForModule( const rtl::OU key + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( ".cfg" )) ); - if( osl::FileBase::E_None != cfgFile.open( OpenFlag_Read ) ) + if( osl::FileBase::E_None != cfgFile.open( osl_File_OpenFlag_Read ) ) it->second = 0; else { @@ -1329,7 +1329,7 @@ void Databases::cascadingStylesheet( const rtl::OUString& Language, osl::FileStatus aStatus( FileStatusMask_FileSize ); if( osl::FileBase::E_None == osl::DirectoryItem::get( fileURL,aDirItem ) && - osl::FileBase::E_None == aFile.open( OpenFlag_Read ) && + osl::FileBase::E_None == aFile.open( osl_File_OpenFlag_Read ) && osl::FileBase::E_None == aDirItem.getFileStatus( aStatus ) ) { sal_uInt64 nSize; diff --git a/xmlhelp/source/cxxhelp/provider/inputstream.cxx b/xmlhelp/source/cxxhelp/provider/inputstream.cxx index d4914a8ad6d7..8cba751dff67 100644 --- a/xmlhelp/source/cxxhelp/provider/inputstream.cxx +++ b/xmlhelp/source/cxxhelp/provider/inputstream.cxx @@ -42,7 +42,7 @@ XInputStream_impl::XInputStream_impl( const rtl::OUString& aUncPath ) : m_bIsOpen( false ), m_aFile( aUncPath ) { - m_bIsOpen = ( osl::FileBase::E_None == m_aFile.open( OpenFlag_Read ) ); + m_bIsOpen = ( osl::FileBase::E_None == m_aFile.open( osl_File_OpenFlag_Read ) ); } diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx index 1c56d5fcb9ba..7c6f646b3358 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.cxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.cxx @@ -761,7 +761,7 @@ helpMatch(const char * URI) { static void * fileOpen(const char *URI) { osl::File *pRet = new osl::File(rtl::OUString(URI, strlen(URI), RTL_TEXTENCODING_UTF8)); - pRet->open(OpenFlag_Read); + pRet->open(osl_File_OpenFlag_Read); return pRet; } diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 8c9851fb33bd..73fad53c9647 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -519,7 +519,7 @@ TVChildTarget::TVChildTarget( const Reference< XMultiServiceFactory >& xMSF ) len = configData.vFileLen[--j]; char* s = new char[ int(len) ]; // the buffer to hold the installed files osl::File aFile( configData.vFileURL[j] ); - aFile.open( OpenFlag_Read ); + aFile.open( osl_File_OpenFlag_Read ); aFile.read( s,len,ret ); aFile.close(); @@ -781,7 +781,7 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr ) if(! showBasic && baseName.compareToAscii("sbasic") == 0 ) continue; osl::File aFile( aFileUrl ); - if( osl::FileBase::E_None == aFile.open( OpenFlag_Read ) ) + if( osl::FileBase::E_None == aFile.open( osl_File_OpenFlag_Read ) ) { sal_uInt64 nSize; aFile.getSize( nSize ); |