diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-09-05 16:39:13 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-09-05 16:39:13 +0000 |
commit | acf9db6ba4024617489bbb2e594347a943904b46 (patch) | |
tree | 2d8ebb2e1e3ece0a2a37794117aa415503d99d39 /soldep | |
parent | cca8ca2792a7c95c7153ab742ef245f72f682d89 (diff) |
INTEGRATION: CWS bserver30 (1.4.22); FILE MERGED
2007/08/29 13:41:03 kz 1.4.22.2: RESYNC: (1.4-1.6); FILE MERGED
2007/07/16 09:50:05 kz 1.4.22.1: #149702# improve error handling for build.lst
Diffstat (limited to 'soldep')
-rw-r--r-- | soldep/bootstrp/prj.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/soldep/bootstrp/prj.cxx b/soldep/bootstrp/prj.cxx index 7b99f88f0200..88f4fa94217c 100644 --- a/soldep/bootstrp/prj.cxx +++ b/soldep/bootstrp/prj.cxx @@ -4,9 +4,9 @@ * * $RCSfile: prj.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2007-07-18 07:32:32 $ + * last change: $Author: kz $ $Date: 2007-09-05 17:39:13 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -130,16 +130,19 @@ ByteString SimpleConfig::GetNextLine() /*****************************************************************************/ { ByteString aSecStr; + sal_Bool bStreamOk; USHORT iret = 0; nLine++; - aFileStream.ReadLine ( aTmpStr ); - if ( aTmpStr.Search( "#" ) == 0 ) + bStreamOk = aFileStream.ReadLine ( aTmpStr ); + if ( (aTmpStr.Search( "#" ) == 0) ) return "\t"; aTmpStr = aTmpStr.EraseLeadingChars(); aTmpStr = aTmpStr.EraseTrailingChars(); while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ); int nLength = aTmpStr.Len(); + if ( bStreamOk && (nLength == 0) ) + return "\t"; USHORT nPos = 0; BOOL bFound = FALSE; ByteString aEraseString; |