diff options
Diffstat (limited to 'lotuswordpro/source/filter/xfilter/xfimagestyle.cxx')
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfimagestyle.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx b/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx index dfebaf32a062..4eb5ba656aaa 100644 --- a/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx +++ b/lotuswordpro/source/filter/xfilter/xfimagestyle.cxx @@ -85,7 +85,7 @@ void XFImageStyle::ToXml(IXFStream *pStrm) pAttrList->Clear(); pAttrList->AddAttribute( A2OUSTR("style:name"), GetStyleName() ); - if( GetParentStyleName().getLength() > 0 ) + if( !GetParentStyleName().isEmpty() ) pAttrList->AddAttribute(A2OUSTR("style:parent-style-name"),GetParentStyleName()); pAttrList->AddAttribute( A2OUSTR("style:family"), A2OUSTR("graphics") ); //parent style name ignore now. @@ -169,13 +169,13 @@ void XFImageStyle::ToXml(IXFStream *pStrm) protect += A2OUSTR("content"); if( m_bProtectSize ) { - if( protect.getLength()>0 ) + if( !protect.isEmpty() ) protect += A2OUSTR(" "); protect += A2OUSTR("size"); } if( m_bProtectPos ) { - if( protect.getLength()>0 ) + if( !protect.isEmpty() ) protect += A2OUSTR(" "); protect += A2OUSTR("position"); } |