diff options
author | th <th@openoffice.org> | 2001-05-11 08:33:55 +0000 |
---|---|---|
committer | th <th@openoffice.org> | 2001-05-11 08:33:55 +0000 |
commit | a853bb9278454301c311bbadd1c7cfe90e717bd8 (patch) | |
tree | 301d4ffa75a75ccb026b1ad8ae55a4e84887b1a3 /forms/source/component/Columns.cxx | |
parent | 07c0b9833029365b30f1422920d73a12cc761a5c (diff) |
rtl-string-changes
Diffstat (limited to 'forms/source/component/Columns.cxx')
-rw-r--r-- | forms/source/component/Columns.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/forms/source/component/Columns.cxx b/forms/source/component/Columns.cxx index dd061807e359..7f71e6365168 100644 --- a/forms/source/component/Columns.cxx +++ b/forms/source/component/Columns.cxx @@ -2,9 +2,9 @@ * * $RCSfile: Columns.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: jl $ $Date: 2001-03-22 16:37:15 $ + * last change: $Author: th $ $Date: 2001-05-11 09:30:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -180,14 +180,14 @@ sal_Int32 getColumnTypeByModelName(const ::rtl::OUString& aModelName) nTypeId = TYPE_TEXTFIELD; else { - sal_Int32 nPrefixPos = aModelName.search(aModelPrefix); - sal_Int32 nCampatiblePrefixPos = aModelName.search(aCompatibleModelPrefix); + sal_Int32 nPrefixPos = aModelName.indexOf(aModelPrefix); + sal_Int32 nCampatiblePrefixPos = aModelName.indexOf(aCompatibleModelPrefix); DBG_ASSERT( (nPrefixPos != -1) || (nCampatiblePrefixPos != -1), "::getColumnTypeByModelName() : wrong servivce !"); ::rtl::OUString aColumnType = (nPrefixPos != -1) - ? aModelName.copy(aModelPrefix.len()) - : aModelName.copy(aCompatibleModelPrefix.len()); + ? aModelName.copy(aModelPrefix.getLength()) + : aModelName.copy(aCompatibleModelPrefix.getLength()); const StringSequence& rColumnTypes = getColumnTypes(); nTypeId = ::internal::findPos(aColumnType, rColumnTypes); |