summaryrefslogtreecommitdiff
path: root/xmloff/source/style/xmlexppr.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2012-01-26 14:47:19 -0200
committerOlivier Hallot <olivier.hallot@alta.org.br>2012-01-26 19:19:41 -0200
commitdfa8287f8bbb6c523266237ff67eb4b3d07b5c8b (patch)
tree137193f28913a47993aa341b72a19a73e8452032 /xmloff/source/style/xmlexppr.cxx
parent78cca63070ae6cf82b45ec3bc75fafa2db31a7f2 (diff)
Fix for fdo43460 Part XLIX getLength() to isEmpty()
Part XLIX Modules xmloff (part 3)
Diffstat (limited to 'xmloff/source/style/xmlexppr.cxx')
-rw-r--r--xmloff/source/style/xmlexppr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/style/xmlexppr.cxx b/xmloff/source/style/xmlexppr.cxx
index 2cdf096308a9..d610e4e0454a 100644
--- a/xmloff/source/style/xmlexppr.cxx
+++ b/xmloff/source/style/xmlexppr.cxx
@@ -976,7 +976,7 @@ void SvXMLExportPropertyMapper::_exportXML(
if( nColonPos != -1 )
sPrefix = pAttribName->copy( 0, nColonPos );
- if( sPrefix.getLength() )
+ if( !sPrefix.isEmpty() )
{
OUString sNamespace( aData.Namespace );
@@ -1044,9 +1044,9 @@ void SvXMLExportPropertyMapper::_exportXML(
}
}
OUString sOldValue( rAttrList.getValueByName( sAttribName ) );
- OSL_ENSURE( sOldValue.getLength() == 0, "alien attribute exists already" );
+ OSL_ENSURE( sOldValue.isEmpty(), "alien attribute exists already" );
OSL_ENSURE(aData.Type == GetXMLToken(XML_CDATA), "different type to our default type which should be written out");
- if( !sOldValue.getLength() )
+ if( sOldValue.isEmpty() )
rAttrList.AddAttribute( sAttribName, aData.Value );
}