diff options
Diffstat (limited to 'xmloff/source/text/XMLTextNumRuleInfo.cxx')
-rw-r--r-- | xmloff/source/text/XMLTextNumRuleInfo.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/text/XMLTextNumRuleInfo.cxx b/xmloff/source/text/XMLTextNumRuleInfo.cxx index b086136782bf..d8aebcc25c6f 100644 --- a/xmloff/source/text/XMLTextNumRuleInfo.cxx +++ b/xmloff/source/text/XMLTextNumRuleInfo.cxx @@ -141,7 +141,7 @@ void XMLTextNumRuleInfo::Set( // First try to find the numbering rules in the list auto style pool. // If not found, the numbering rules instance has to be named. msNumRulesName = rListAutoPool.Find( mxNumRules ); - if ( msNumRulesName.getLength() == 0 ) + if ( msNumRulesName.isEmpty() ) { Reference < XNamed > xNamed( mxNumRules, UNO_QUERY ); DBG_ASSERT( xNamed.is(), @@ -151,7 +151,7 @@ void XMLTextNumRuleInfo::Set( msNumRulesName = xNamed->getName(); } } - DBG_ASSERT( msNumRulesName.getLength() > 0, + DBG_ASSERT( !msNumRulesName.isEmpty(), "<XMLTextNumRuleInfo::Set(..)> - no name found for numbering rules instance. Serious defect -> please inform OD." ); if( xPropSetInfo->hasPropertyByName( msPropNameListId ) ) @@ -230,8 +230,7 @@ sal_Bool XMLTextNumRuleInfo::BelongsToSameList( const XMLTextNumRuleInfo& rCmp ) { sal_Bool bRet( sal_True ); // Currently only the text documents support <ListId>. - if ( rCmp.msListId.getLength() > 0 || - msListId.getLength() > 0 ) + if ( !rCmp.msListId.isEmpty() || !msListId.isEmpty() ) { bRet = rCmp.msListId == msListId; } |