summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/textfont.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/textfont.cxx')
-rw-r--r--oox/source/drawingml/textfont.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/textfont.cxx b/oox/source/drawingml/textfont.cxx
index 5cd0fe2b996f..9503db839e39 100644
--- a/oox/source/drawingml/textfont.cxx
+++ b/oox/source/drawingml/textfont.cxx
@@ -77,7 +77,7 @@ void TextFont::setAttributes( const AttributeList& rAttribs )
void TextFont::assignIfUsed( const TextFont& rTextFont )
{
- if( rTextFont.maTypeface.getLength() > 0 )
+ if( !rTextFont.maTypeface.isEmpty() )
*this = rTextFont;
}
@@ -94,7 +94,7 @@ bool TextFont::implGetFontData( OUString& rFontName, sal_Int16& rnFontPitch, sal
rFontName = maTypeface;
rnFontPitch = lclGetFontPitch( extractValue< sal_Int16 >( mnPitch, 0, 4 ) );
rnFontFamily = lclGetFontFamily( extractValue< sal_Int16 >( mnPitch, 4, 4 ) );
- return rFontName.getLength() > 0;
+ return !rFontName.isEmpty();
}
// ============================================================================