summaryrefslogtreecommitdiff
path: root/comphelper/source/xml
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@alta.org.br>2011-12-12 23:01:55 -0200
committerIvan Timofeev <timofeev.i.s@gmail.com>2011-12-13 11:57:55 +0400
commit00a67c0f9056729695e6004707d64b448756fa6f (patch)
treead780d6c78b55977a00f1ff6b3d418c24bf41d30 /comphelper/source/xml
parentd5b25bdd1247363c5745dd5fcbc2ec784063b6bd (diff)
Fix for fdo43460 Part VII getLength() to isEmpty()
Part VII Module comphelper
Diffstat (limited to 'comphelper/source/xml')
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index 2de86b2d21d2..c1a6a014dccc 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -294,7 +294,7 @@ void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const u
m_aResultSeq[nNewEntryNum-1].realloc( 4 ); // the maximal expected number of arguments is 4
::rtl::OUString aIDValue = xAttribs->getValueByName( m_aIDAttr );
- if ( !aIDValue.getLength() )
+ if ( aIDValue.isEmpty() )
throw xml::sax::SAXException(); // TODO: the ID value must present
::rtl::OUString aTypeValue = xAttribs->getValueByName( m_aTypeAttr );
@@ -304,19 +304,19 @@ void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const u
m_aResultSeq[nNewEntryNum-1][++nAttrNum - 1].First = m_aIDAttr;
m_aResultSeq[nNewEntryNum-1][nAttrNum - 1].Second = aIDValue;
- if ( aTypeValue.getLength() )
+ if ( !aTypeValue.isEmpty() )
{
m_aResultSeq[nNewEntryNum-1][++nAttrNum - 1].First = m_aTypeAttr;
m_aResultSeq[nNewEntryNum-1][nAttrNum - 1].Second = aTypeValue;
}
- if ( aTargetValue.getLength() )
+ if ( !aTargetValue.isEmpty() )
{
m_aResultSeq[nNewEntryNum-1][++nAttrNum - 1].First = m_aTargetAttr;
m_aResultSeq[nNewEntryNum-1][nAttrNum - 1].Second = aTargetValue;
}
- if ( aTargetModeValue.getLength() )
+ if ( !aTargetModeValue.isEmpty() )
{
m_aResultSeq[nNewEntryNum-1][++nAttrNum - 1].First = m_aTargetModeAttr;
m_aResultSeq[nNewEntryNum-1][nAttrNum - 1].Second = aTargetModeValue;
@@ -360,11 +360,11 @@ void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const u
throw uno::RuntimeException();
::rtl::OUString aExtensionValue = xAttribs->getValueByName( m_aExtensionAttr );
- if ( !aExtensionValue.getLength() )
+ if ( aExtensionValue.isEmpty() )
throw xml::sax::SAXException(); // TODO: the Extension value must present
::rtl::OUString aContentTypeValue = xAttribs->getValueByName( m_aContentTypeAttr );
- if ( !aContentTypeValue.getLength() )
+ if ( aContentTypeValue.isEmpty() )
throw xml::sax::SAXException(); // TODO: the ContentType value must present
sal_Int32 nNewResultLen = m_aResultSeq[0].getLength() + 1;
@@ -389,11 +389,11 @@ void SAL_CALL OFOPXMLHelper::startElement( const ::rtl::OUString& aName, const u
throw uno::RuntimeException();
::rtl::OUString aPartNameValue = xAttribs->getValueByName( m_aPartNameAttr );
- if ( !aPartNameValue.getLength() )
+ if ( aPartNameValue.isEmpty() )
throw xml::sax::SAXException(); // TODO: the PartName value must present
::rtl::OUString aContentTypeValue = xAttribs->getValueByName( m_aContentTypeAttr );
- if ( !aContentTypeValue.getLength() )
+ if ( aContentTypeValue.isEmpty() )
throw xml::sax::SAXException(); // TODO: the ContentType value must present
sal_Int32 nNewResultLen = m_aResultSeq[1].getLength() + 1;