Assume this shall be conditional on DBG_UTIL
...and not that MSVC-special _DEBUG Change-Id: I927f1d49dcbb24fd8fb91032ded6215390c97d79
This commit is contained in:
parent
c5d16f557c
commit
b35e797ca0
@ -89,7 +89,7 @@ namespace comphelper
|
|||||||
if ( !nProperties )
|
if ( !nProperties )
|
||||||
return aStates;
|
return aStates;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DBG_UTIL
|
||||||
// precondition: property sequence is sorted (the algorithm below relies on this)
|
// precondition: property sequence is sorted (the algorithm below relies on this)
|
||||||
{
|
{
|
||||||
const OUString* pNames = _rPropertyNames.getConstArray();
|
const OUString* pNames = _rPropertyNames.getConstArray();
|
||||||
@ -114,7 +114,7 @@ namespace comphelper
|
|||||||
osl::MutexGuard aGuard( rBHelper.rMutex );
|
osl::MutexGuard aGuard( rBHelper.rMutex );
|
||||||
for ( ; ( pAllProperties != pAllPropertiesEnd ) && ( pLookup != pLookupEnd ); ++pAllProperties )
|
for ( ; ( pAllProperties != pAllPropertiesEnd ) && ( pLookup != pLookupEnd ); ++pAllProperties )
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef DBG_UTIL
|
||||||
if ( pAllProperties < pAllPropertiesEnd - 1 )
|
if ( pAllProperties < pAllPropertiesEnd - 1 )
|
||||||
OSL_ENSURE( pAllProperties->Name.compareTo( (pAllProperties + 1)->Name ) < 0,
|
OSL_ENSURE( pAllProperties->Name.compareTo( (pAllProperties + 1)->Name ) < 0,
|
||||||
"OPropertyStateContainer::getPropertyStates: all-properties not sorted!" );
|
"OPropertyStateContainer::getPropertyStates: all-properties not sorted!" );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user