summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-01-21 14:09:45 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-01-21 14:12:45 +0100
commit186da98a58f627639a1b4d27b14db8f60f09b046 (patch)
treef002faeb34c39ca58d59257c0d9deac17b595847
parent3c9137a7f17895a5e58fd3da73c9141c2e64150f (diff)
Replace suitable equalsAscii calls with equalsAsciiL.
-rw-r--r--sfx2/source/doc/SfxDocumentMetaData.cxx6
-rw-r--r--ucb/source/ucp/ftp/ftpcontent.cxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index 8881443278..b64c37f3a7 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -543,10 +543,10 @@ getQualifier(const char* i_name) {
DBG_ASSERT(i_qname, "SfxDocumentMetaData: getNameSpace: argument is null");
const char * ns = "";
::rtl::OUString n = getQualifier(i_qname).first;
- if (n.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("xlink" ) )) ns = s_nsXLink;
- if (n.equalsAscii("dc" )) ns = s_nsDC;
+ if (n.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("xlink"))) ns = s_nsXLink;
+ if (n.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("dc"))) ns = s_nsDC;
if (n.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("office"))) ns = s_nsODF;
- if (n.equalsAscii("meta" )) ns = s_nsODFMeta;
+ if (n.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("meta"))) ns = s_nsODFMeta;
DBG_ASSERT(*ns, "SfxDocumentMetaData: unknown namespace prefix");
return ::rtl::OUString::createFromAscii(ns);
}
diff --git a/ucb/source/ucp/ftp/ftpcontent.cxx b/ucb/source/ucp/ftp/ftpcontent.cxx
index aa77a3e5db..8a7f878623 100644
--- a/ucb/source/ucp/ftp/ftpcontent.cxx
+++ b/ucb/source/ucp/ftp/ftpcontent.cxx
@@ -681,10 +681,10 @@ Reference<XContent > SAL_CALL
FTPContent::createNewContent( const ContentInfo& Info )
throw (RuntimeException)
{
- if(Info.Type.equalsAscii("application/"
- "vnd.sun.staroffice.ftp-file") ||
- Info.Type.equalsAscii("application/"
- "vnd.sun.staroffice.ftp-folder"))
+ if(Info.Type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("application/"
+ "vnd.sun.staroffice.ftp-file")) ||
+ Info.Type.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("application/"
+ "vnd.sun.staroffice.ftp-folder")))
return new FTPContent(m_xSMgr,
m_pFCP,
m_xIdentifier,Info);