diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index a75becae6d3e..1ddbc4824ad9 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ListBox.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: fs $ $Date: 2001-04-26 12:36:28 $ + * last change: $Author: th $ $Date: 2001-05-11 09:46:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -526,9 +526,20 @@ void SAL_CALL OListBoxModel::read(const Reference& _ ::rtl::OUString sListSource; _rxInStream >> sListSource; - aListSourceSeq.realloc( sListSource.getTokenCount() ); - for (sal_uInt16 i=0; i> aListSourceSeq; @@ -620,7 +631,7 @@ void OListBoxModel::loadData() sal_Int32 i; for (i=0; i xMeta = xConnection->getMetaData(); @@ -708,7 +719,7 @@ void OListBoxModel::loadData() aStatement += ::rtl::OUString::createFromAscii("DISTINCT "); aStatement += quoteName(aQuote,aFieldName); - if (aBoundFieldName.len()) + if (aBoundFieldName.getLength()) { aStatement += ::rtl::OUString::createFromAscii(", "); aStatement += quoteName(aQuote, aBoundFieldName); @@ -875,7 +886,7 @@ void OListBoxModel::loadData() aValueList.push_back(aStr); } - if (bUseNULL && (m_nNULLPos == -1) && !aStr.len()) + if (bUseNULL && (m_nNULLPos == -1) && !aStr.getLength()) m_nNULLPos = (sal_Int16)aStringList.size() - 1; } } diff --git a/forms/source/component/Pattern.cxx b/forms/source/component/Pattern.cxx index 98b0b26b877e..c4afd0f3991b 100644 --- a/forms/source/component/Pattern.cxx +++ b/forms/source/component/Pattern.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Pattern.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: fs $ $Date: 2001-04-02 10:28:06 $ + * last change: $Author: th $ $Date: 2001-05-11 09:46:33 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -210,7 +210,7 @@ sal_Bool OPatternModel::_commit() ::rtl::OUString aNewValue = getString(m_xAggregateFastSet->getFastPropertyValue( OPatternModel::nTextHandle )); if (aNewValue != m_aSaveValue) { - if (!aNewValue.len() && !m_bRequired && m_bEmptyIsNull) + if (!aNewValue.getLength() && !m_bRequired && m_bEmptyIsNull) m_xColumnUpdate->updateNull(); else {