diff options
Diffstat (limited to 'io/source/stm/omark.cxx')
-rw-r--r-- | io/source/stm/omark.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/io/source/stm/omark.cxx b/io/source/stm/omark.cxx index 67d4023387a3..a8317d3918a0 100644 --- a/io/source/stm/omark.cxx +++ b/io/source/stm/omark.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -405,7 +406,7 @@ void OMarkableOutputStream::checkMarksAndFlush() throw( NotConnectedExceptio // find the smallest mark sal_Int32 nNextFound = m_nCurrentPos; - for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) { + for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ++ii ) { if( (*ii).second <= nNextFound ) { nNextFound = (*ii).second; } @@ -414,7 +415,7 @@ void OMarkableOutputStream::checkMarksAndFlush() throw( NotConnectedExceptio if( nNextFound ) { // some data must be released ! m_nCurrentPos -= nNextFound; - for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) { + for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ++ii ) { (*ii).second -= nNextFound; } @@ -729,15 +730,13 @@ void OMarkableInputStream::skipBytes(sal_Int32 nBytesToSkip) { if ( nBytesToSkip < 0 ) throw BufferSizeExceededException( - ::rtl::OUString::createFromAscii( "precondition not met: XInputStream::skipBytes: non-negative integer required!" ), + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("precondition not met: XInputStream::skipBytes: non-negative integer required!")), *this ); // this method is blocking - sal_Int32 nRead; Sequence<sal_Int8> seqDummy( nBytesToSkip ); - - nRead = readBytes( seqDummy , nBytesToSkip ); + readBytes( seqDummy , nBytesToSkip ); } sal_Int32 OMarkableInputStream::available(void) throw (NotConnectedException, RuntimeException) @@ -938,7 +937,7 @@ void OMarkableInputStream::checkMarksAndFlush() // find the smallest mark sal_Int32 nNextFound = m_nCurrentPos; - for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) { + for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ++ii ) { if( (*ii).second <= nNextFound ) { nNextFound = (*ii).second; } @@ -947,7 +946,7 @@ void OMarkableInputStream::checkMarksAndFlush() if( nNextFound ) { // some data must be released ! m_nCurrentPos -= nNextFound; - for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ii ++ ) { + for( ii = m_mapMarks.begin() ; ii != m_mapMarks.end() ; ++ii ) { (*ii).second -= nNextFound; } @@ -1013,3 +1012,5 @@ Sequence<OUString> OMarkableInputStream_getSupportedServiceNames(void) } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |