diff --git a/svl/source/items/style.cxx b/svl/source/items/style.cxx index 635480d42f93..72519f5cbd1a 100644 --- a/svl/source/items/style.cxx +++ b/svl/source/items/style.cxx @@ -765,7 +765,7 @@ void SfxStyleSheetBasePool::Insert( SfxStyleSheetBase* p ) SfxStyleSheetIterator aIter(this, p->GetFamily(), p->GetMask()); SfxStyleSheetBase* pOld = aIter.Find( p->GetName() ); OSL_ENSURE( !pOld, "svl::SfxStyleSheetBasePool::Insert(), StyleSheet already inserted" ); - if( p->GetParent().Len() ) + if( !p->GetParent().isEmpty() ) { pOld = aIter.Find( p->GetParent() ); OSL_ENSURE( pOld, "svl::SfxStyleSheetBasePool::Insert(), Parent not found!" );