diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-07 09:28:42 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-07 11:20:44 +0200 |
commit | 7f8f277b94704a289fbbd1b836e4e5d66311580d (patch) | |
tree | 2400b7306a0a2a3ea63aee2e5bfc336b52102635 /idl | |
parent | 8db77209e0755d21d9efc34f70a2978d1df5d2c6 (diff) |
fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/cmptools/lex.cxx | 2 | ||||
-rw-r--r-- | idl/source/prj/command.cxx | 4 | ||||
-rw-r--r-- | idl/source/prj/database.cxx | 2 | ||||
-rw-r--r-- | idl/source/prj/svidl.cxx | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx index 4bf23589e4f0..0802436b52e0 100644 --- a/idl/source/cmptools/lex.cxx +++ b/idl/source/cmptools/lex.cxx @@ -96,7 +96,7 @@ void SvTokenStream::InitCtor() } SvTokenStream::SvTokenStream( const OUString & rFileName ) - : pInStream( new SvFileStream( rFileName, STREAM_STD_READ | STREAM_NOCREATE ) ) + : pInStream( new SvFileStream( rFileName, STREAM_STD_READ | StreamMode::NOCREATE ) ) , rInStream( *pInStream ) , aFileName( rFileName ) { diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx index 6e1972799f68..005c0f05946e 100644 --- a/idl/source/prj/command.cxx +++ b/idl/source/prj/command.cxx @@ -133,7 +133,7 @@ bool ReadIdl( SvIdlWorkingBase * pDataBase, const SvCommand & rCommand ) { OUString aFileName ( rCommand.aInFileList[ n ] ); pDataBase->AddDepFile(aFileName); - SvFileStream aStm( aFileName, STREAM_STD_READ | STREAM_NOCREATE ); + SvFileStream aStm( aFileName, STREAM_STD_READ | StreamMode::NOCREATE ); if( aStm.GetError() == SVSTREAM_OK ) { SvTokenStream aTokStm( aStm, aFileName ); @@ -159,7 +159,7 @@ static bool ResponseFile( StringList * pList, int argc, char ** argv ) { if( '@' == **(argv +i) ) { // when @, then response file - SvFileStream aStm( OUString::createFromAscii((*(argv +i)) +1), STREAM_STD_READ | STREAM_NOCREATE ); + SvFileStream aStm( OUString::createFromAscii((*(argv +i)) +1), STREAM_STD_READ | StreamMode::NOCREATE ); if( aStm.GetError() != SVSTREAM_OK ) return false; diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index c6c37c55a49b..98d02993bb73 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -562,7 +562,7 @@ bool SvIdlWorkingBase::ReadSvIdl( SvTokenStream & rInStm, bool bImported, const { osl::FileBase::getSystemPathFromFileURL( aFullName, aFullName ); this->AddDepFile(aFullName); - SvFileStream aStm( aFullName, STREAM_STD_READ | STREAM_NOCREATE ); + SvFileStream aStm( aFullName, STREAM_STD_READ | StreamMode::NOCREATE ); SvTokenStream aTokStm( aStm, aFullName ); bOk = ReadSvIdl( aTokStm, true, rPath ); } diff --git a/idl/source/prj/svidl.cxx b/idl/source/prj/svidl.cxx index 852b6bacf524..ee1bb85bb162 100644 --- a/idl/source/prj/svidl.cxx +++ b/idl/source/prj/svidl.cxx @@ -131,7 +131,7 @@ int main ( int argc, char ** argv) if( nExit == 0 && !aCommand.aSlotMapFile.isEmpty() ) { aTmpSlotMapFile = tempFileHelper(aCommand.aSlotMapFile); - SvFileStream aOutStm( aTmpSlotMapFile, STREAM_READWRITE | STREAM_TRUNC ); + SvFileStream aOutStm( aTmpSlotMapFile, STREAM_READWRITE | StreamMode::TRUNC ); if( !pDataBase->WriteSfx( aOutStm ) ) { nExit = -1; @@ -143,7 +143,7 @@ int main ( int argc, char ** argv) if (nExit == 0 && !aCommand.m_DepFile.isEmpty()) { aTmpDepFile = tempFileHelper(aCommand.m_DepFile); - SvFileStream aOutStm( aTmpDepFile, STREAM_READWRITE | STREAM_TRUNC ); + SvFileStream aOutStm( aTmpDepFile, STREAM_READWRITE | StreamMode::TRUNC ); pDataBase->WriteDepFile(aOutStm, aCommand.aTargetFile); if( aOutStm.GetError() != SVSTREAM_OK ) { @@ -196,7 +196,7 @@ int main ( int argc, char ** argv) { // stamp file, because idl passed through correctly SvFileStream aOutStm( aCommand.aTargetFile, - STREAM_READWRITE | STREAM_TRUNC ); + STREAM_READWRITE | StreamMode::TRUNC ); } } } |