diff options
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 1d966832a77c..6cbde3a5dcaa 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3139,23 +3139,23 @@ void SbRtl_EOF(StarBASIC *, SbxArray & rPar, bool) StarBASIC::Error( ERRCODE_BASIC_BAD_CHANNEL ); return; } - bool bIsEof; + bool beof; SvStream* pSvStrm = pSbStrm->GetStrm(); if ( pSbStrm->IsText() ) { char cBla; (*pSvStrm).ReadChar( cBla ); // can we read another character? - bIsEof = pSvStrm->IsEof(); - if ( !bIsEof ) + beof = pSvStrm->eof(); + if ( !beof ) { pSvStrm->SeekRel( -1 ); } } else { - bIsEof = pSvStrm->IsEof(); // for binary data! + beof = pSvStrm->eof(); // for binary data! } - rPar.Get(0)->PutBool( bIsEof ); + rPar.Get(0)->PutBool( beof ); } } |