Kaydet (Commit) acf9db6b authored tarafından Kurt Zenker's avatar Kurt Zenker

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
üst cca8ca27
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: prj.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -130,16 +130,19 @@ ByteString SimpleConfig::GetNextLine() ...@@ -130,16 +130,19 @@ ByteString SimpleConfig::GetNextLine()
/*****************************************************************************/ /*****************************************************************************/
{ {
ByteString aSecStr; ByteString aSecStr;
sal_Bool bStreamOk;
USHORT iret = 0; USHORT iret = 0;
nLine++; nLine++;
aFileStream.ReadLine ( aTmpStr ); bStreamOk = aFileStream.ReadLine ( aTmpStr );
if ( aTmpStr.Search( "#" ) == 0 ) if ( (aTmpStr.Search( "#" ) == 0) )
return "\t"; return "\t";
aTmpStr = aTmpStr.EraseLeadingChars(); aTmpStr = aTmpStr.EraseLeadingChars();
aTmpStr = aTmpStr.EraseTrailingChars(); aTmpStr = aTmpStr.EraseTrailingChars();
while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND ); while ( aTmpStr.SearchAndReplace(ByteString(' '),ByteString('\t') ) != STRING_NOTFOUND );
int nLength = aTmpStr.Len(); int nLength = aTmpStr.Len();
if ( bStreamOk && (nLength == 0) )
return "\t";
USHORT nPos = 0; USHORT nPos = 0;
BOOL bFound = FALSE; BOOL bFound = FALSE;
ByteString aEraseString; ByteString aEraseString;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment