summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosrch.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-12-01 16:24:47 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-12-01 16:24:47 +0000
commit248b57fe61c23b10d10ca3a2ee5b112764a1dbf9 (patch)
treeab015f8ed368d6a616d3a3bc947d9d83617ed4e1 /sw/source/core/unocore/unosrch.cxx
parentead9b5c58f59b25365afc93c4fa025f3bf826ee2 (diff)
INTEGRATION: CWS ooo20031110 (1.8.234); FILE MERGED
2003/11/13 10:57:04 waratah 1.8.234.1: #i22301# correct the for scope problems in the code
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r--sw/source/core/unocore/unosrch.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index 713de00dccca..dbd1a5b070f6 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unosrch.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2003-11-25 10:47:54 $
+ * last change: $Author: rt $ $Date: 2003-12-01 17:24:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -160,8 +160,10 @@ void SwSearchProperties_Impl::SetProperties(const Sequence< PropertyValue >&
const SfxItemPropertyMap* pMap = aSwMapProvider.GetPropertyMap(PROPERTY_MAP_TEXT_CURSOR);
long nLen = aSearchAttribs.getLength();
const PropertyValue* pProps = aSearchAttribs.getConstArray();
+ long i;
+
//delete all existing values
- for(long i = 0; i < nArrLen; i++)
+ for( i = 0; i < nArrLen; i++)
{
delete pValueArr[i];
pValueArr[i] = 0;
@@ -188,7 +190,8 @@ void SwSearchProperties_Impl::SetProperties(const Sequence< PropertyValue >&
const Sequence< PropertyValue > SwSearchProperties_Impl::GetProperties() const
{
sal_uInt16 nPropCount = 0;
- for(sal_uInt16 i = 0; i < nArrLen; i++)
+ sal_uInt16 i;
+ for( i = 0; i < nArrLen; i++)
if(pValueArr[i])
nPropCount++;