summaryrefslogtreecommitdiffstats
path: root/unoxml
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-28 15:40:51 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-28 15:41:03 +0100
commite0239bdc6a6389be727c341ad4b9a95c689277a6 (patch)
tree69df6bbd34730349429dff1aa29792b9bf2e8795 /unoxml
parentUse product name for EPS Creator header (diff)
downloadcore-e0239bdc6a6389be727c341ad4b9a95c689277a6.tar.gz
core-e0239bdc6a6389be727c341ad4b9a95c689277a6.zip
Replace empty equalsAscii() with getLength().
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/element.cxx2
-rw-r--r--unoxml/source/rdf/CLiteral.cxx2
-rw-r--r--unoxml/source/rdf/librdf_repository.cxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/unoxml/source/dom/element.cxx b/unoxml/source/dom/element.cxx
index cc8bde8fd0cd..804e8473f2a7 100644
--- a/unoxml/source/dom/element.cxx
+++ b/unoxml/source/dom/element.cxx
@@ -60,7 +60,7 @@ namespace DOM
OUString prefix(reinterpret_cast<const sal_Char*>(pPrefix),
strlen(reinterpret_cast<const char*>(pPrefix)),
RTL_TEXTENCODING_UTF8);
- OUString name = (prefix.equalsAscii(""))
+ OUString name = (prefix.getLength() == 0)
? OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns"))
: OUString(RTL_CONSTASCII_USTRINGPARAM("xmlns:")) + prefix;
const xmlChar *pHref = pNs->href;
diff --git a/unoxml/source/rdf/CLiteral.cxx b/unoxml/source/rdf/CLiteral.cxx
index 6867d71ed1c8..549cee2146f4 100644
--- a/unoxml/source/rdf/CLiteral.cxx
+++ b/unoxml/source/rdf/CLiteral.cxx
@@ -160,7 +160,7 @@ void SAL_CALL CLiteral::initialize(const css::uno::Sequence< ::com::sun::star::u
// ::com::sun::star::rdf::XNode:
::rtl::OUString SAL_CALL CLiteral::getStringValue() throw (css::uno::RuntimeException)
{
- if (!m_Language.equalsAscii("")) {
+ if (m_Language.getLength()) {
::rtl::OUStringBuffer buf(m_Value);
buf.appendAscii("@");
buf.append(m_Language);
diff --git a/unoxml/source/rdf/librdf_repository.cxx b/unoxml/source/rdf/librdf_repository.cxx
index caf6c19dfd32..fa5b065d068b 100644
--- a/unoxml/source/rdf/librdf_repository.cxx
+++ b/unoxml/source/rdf/librdf_repository.cxx
@@ -1434,7 +1434,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
// ensure that the metadatable has an XML ID
i_xObject->ensureMetadataReference();
const beans::StringPair mdref( i_xObject->getMetadataReference() );
- if (mdref.First.equalsAscii("") || mdref.Second.equalsAscii("")) {
+ if ((mdref.First.getLength() == 0) || (mdref.Second.getLength() == 0)) {
throw uno::RuntimeException( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(
"librdf_Repository::setStatementRDFa: "
"ensureMetadataReference did not")), *this);
@@ -1497,7 +1497,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
}
const beans::StringPair mdref( i_xElement->getMetadataReference() );
- if (mdref.First.equalsAscii("") || mdref.Second.equalsAscii("")) {
+ if ((mdref.First.getLength() == 0) || (mdref.Second.getLength() == 0)) {
return; // nothing to do...
}
uno::Reference<rdf::XURI> xXmlId;
@@ -1528,7 +1528,7 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::getStatementRDFa: Element is null")), *this, 0);
}
const beans::StringPair mdref( i_xElement->getMetadataReference() );
- if (mdref.First.equalsAscii("") || mdref.Second.equalsAscii("")) {
+ if ((mdref.First.getLength() == 0) || (mdref.Second.getLength() == 0)) {
return beans::Pair< uno::Sequence<rdf::Statement>, sal_Bool >();
}
::rtl::OUString const sXmlId(mdref.First +