sal_uInt16 to sal_uInt32 + some const
Change-Id: I12b04ab7ce15a9a30db6e4dafd64a31f4fca8a88
This commit is contained in:
@@ -74,19 +74,18 @@ void SwSearchProperties_Impl::SetProperties(const uno::Sequence< beans::Prope
|
|||||||
throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException )
|
throw( beans::UnknownPropertyException, lang::IllegalArgumentException, uno::RuntimeException )
|
||||||
{
|
{
|
||||||
const beans::PropertyValue* pProps = aSearchAttribs.getConstArray();
|
const beans::PropertyValue* pProps = aSearchAttribs.getConstArray();
|
||||||
sal_uInt32 i;
|
|
||||||
|
|
||||||
//delete all existing values
|
//delete all existing values
|
||||||
for( i = 0; i < nArrLen; i++)
|
for(sal_uInt32 i = 0; i < nArrLen; ++i)
|
||||||
{
|
{
|
||||||
delete pValueArr[i];
|
delete pValueArr[i];
|
||||||
pValueArr[i] = 0;
|
pValueArr[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_uInt32 nLen = aSearchAttribs.getLength();
|
const sal_uInt32 nLen = aSearchAttribs.getLength();
|
||||||
for(i = 0; i < nLen; i++)
|
for(sal_uInt32 i = 0; i < nLen; ++i)
|
||||||
{
|
{
|
||||||
sal_uInt16 nIndex = 0;
|
sal_uInt32 nIndex = 0;
|
||||||
PropertyEntryVector_t::const_iterator aIt = aPropertyEntries.begin();
|
PropertyEntryVector_t::const_iterator aIt = aPropertyEntries.begin();
|
||||||
while(pProps[i].Name != aIt->sName)
|
while(pProps[i].Name != aIt->sName)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user