diff options
author | Oliver Bolte <obo@openoffice.org> | 2003-09-04 07:26:47 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2003-09-04 07:26:47 +0000 |
commit | 3d6aa0cbea6cc97e7ff2a068ea194ef4f2ffa671 (patch) | |
tree | 678f8f23c5a8489d75a87c7b655c3a3bff62f74f /connectivity | |
parent | 4d2dbec544e62010354beed87a8c8ccf34a58ac4 (diff) |
INTEGRATION: CWS oj4 (1.5.80); FILE MERGED
2003/07/02 13:32:40 oj 1.5.80.2: #i14646# if no column name is given, use default name
2003/06/27 13:37:58 oj 1.5.80.1: #i14648# implement string functions for file based drivers
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/drivers/flat/ENoException.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/connectivity/source/drivers/flat/ENoException.cxx b/connectivity/source/drivers/flat/ENoException.cxx index f2be9599a8a4..2dd6110a79d7 100644 --- a/connectivity/source/drivers/flat/ENoException.cxx +++ b/connectivity/source/drivers/flat/ENoException.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ENoException.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: oj $ $Date: 2002-10-31 14:14:19 $ + * last change: $Author: obo $ $Date: 2003-09-04 08:26:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -133,7 +133,8 @@ void OFlatString::GetTokenSpecial( String& _rStr,xub_StrLen& nStartPos, sal_Unic if (bInString ) ++nStartPos; // dieses Zeichen ueberlesen! // Suche bis Stringende nach dem ersten nicht uebereinstimmenden Zeichen - for( xub_StrLen i = nStartPos; i < nLen; ++i ) + xub_StrLen i = nStartPos; + for( ; i < nLen; ++i ) { if (bInString) { @@ -175,13 +176,11 @@ void OFlatString::GetTokenSpecial( String& _rStr,xub_StrLen& nStartPos, sal_Unic } } } + if ( i == nLen && nStartPos < i ) + nStartPos = nLen; } } // ----------------------------------------------------------------------------- -void OFlatTable::refreshIndexes() -{ -} -// ----------------------------------------------------------------------------- sal_Bool OFlatTable::checkHeaderLine() { if (m_nFilePos == 0 && ((OFlatConnection*)m_pConnection)->isHeaderLine()) |