Kaydet (Commit) 1b574435 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I17c451d33d6d5e4edf0304ff47d63ac878d7e5d9
üst 0b4e1c94
...@@ -86,7 +86,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper( ...@@ -86,7 +86,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
sal_Int32 nMPLoop = 0; sal_Int32 nMPLoop = 0;
for ( ; nMPLoop < nDelegatorProps; ++nMPLoop, ++pDelegateProps ) for ( ; nMPLoop < nDelegatorProps; ++nMPLoop, ++pDelegateProps )
{ {
m_aPropertyAccessors[ pDelegateProps->Handle ] = OPropertyAccessor( -1, nMPLoop, sal_False ); m_aPropertyAccessors[ pDelegateProps->Handle ] = OPropertyAccessor( -1, nMPLoop, false );
OSL_ENSURE( aDelegatorProps.find( pDelegateProps->Name ) == aDelegatorProps.end(), OSL_ENSURE( aDelegatorProps.find( pDelegateProps->Name ) == aDelegatorProps.end(),
"OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper: duplicate delegatee property!" ); "OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper: duplicate delegatee property!" );
aDelegatorProps.insert( pDelegateProps->Name ); aDelegatorProps.insert( pDelegateProps->Name );
...@@ -128,7 +128,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper( ...@@ -128,7 +128,7 @@ OPropertyArrayAggregationHelper::OPropertyArrayAggregationHelper(
} }
// remember the accessor for this property // remember the accessor for this property
m_aPropertyAccessors[ nHandle ] = OPropertyAccessor( pMergedProps->Handle, nMPLoop, sal_True ); m_aPropertyAccessors[ nHandle ] = OPropertyAccessor( pMergedProps->Handle, nMPLoop, true );
pMergedProps->Handle = nHandle; pMergedProps->Handle = nHandle;
++nMPLoop; ++nMPLoop;
......
...@@ -96,7 +96,7 @@ inline OUStringBuffer& remove(OUStringBuffer &rIn, ...@@ -96,7 +96,7 @@ inline OUStringBuffer& remove(OUStringBuffer &rIn,
sal_Unicode c) sal_Unicode c)
{ {
sal_Int32 index = 0; sal_Int32 index = 0;
while (1) while (true)
{ {
if (index >= rIn.getLength()) if (index >= rIn.getLength())
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment